Search found 20 matches

by sarpomira
Sunday 11th February 2024 7:32pm
Forum: General
Topic: MQTT Library for Gambas3
Replies: 2
Views: 412

MQTT Library for Gambas3

I am having trouble finding an MQTT library to add IOT functionality to an application.
Is there a library/module to allow MQTT messaging in Gabas3 ?
Or ... has anyone written an MQTT application? if so, how did you "publish" and "subscribe" to messages?

cheers :-)
by sarpomira
Thursday 28th December 2023 3:46pm
Forum: General
Topic: Access Denied when launching a Shell file
Replies: 6
Views: 1311

Re: Access Denied when launching a Shell file

I simplified the troubleshooting as much as possible and added two test lines as suggested by Bruce. I created a "Hello World" script called Hello.py and placed it on the desktop.( It runs fine in the linux shell) When I call the file from Gambas using "Shell" I get the following...
by sarpomira
Thursday 28th December 2023 2:32am
Forum: General
Topic: Access Denied when launching a Shell file
Replies: 6
Views: 1311

Access Denied when launching a Shell file

Hi All, When the "Launch" button is pressed, this code would launch an external Python script. It worked just fine for some time. Now whenever I try to get Gambas3 to run an external Python file (any file), I get the error message shown below referring to : Permission denied . Does anyone ...
by sarpomira
Monday 25th December 2023 3:38pm
Forum: General
Topic: Run a function at a certain time of day
Replies: 2
Views: 4357

Re: Run a function at a certain time of day

To clarify the logic.... When the [START] button is clicked, the code in the button event is an endless loop which monitors stuff (say... greenhouse environment). Within the loop is a the "time of day" snippet which calls a subroutine to save some data to a file every day at 1:30 pm. Thank...
by sarpomira
Sunday 24th December 2023 7:33pm
Forum: General
Topic: Run a function at a certain time of day
Replies: 2
Views: 4357

Run a function at a certain time of day

Hi All, I'm struggling a bit with this one. Assume I have a subroutine called "run_analysis()" Whats the syntax to call this routine every day at 1:30 PM ? Bonus question: :lol: Whats the syntax to call this routine every day at 1:30 PM ... on weekdays only ? thanks for any help cheers
by sarpomira
Thursday 30th November 2023 3:36am
Forum: General
Topic: Days between two dates
Replies: 3
Views: 10563

Re: Days between two dates

Bruce and Vuott,

Thanks ! :-)
by sarpomira
Wednesday 29th November 2023 8:32pm
Forum: General
Topic: Days between two dates
Replies: 3
Views: 10563

Days between two dates

Hello,

I'm trying to determine the "date difference" in days between the current day and a future date selected in a Gambas "DateBox" control.
Can anyone offer the proper syntax for comparing / subtracting two dates?

Thanks kindly in advance
by sarpomira
Wednesday 25th October 2023 1:47pm
Forum: General
Topic: View a web page in a standard Gambas GUI application
Replies: 2
Views: 7473

Re: View a web page in a standard Gambas GUI application

Thank you BruceS, that worked.

Cheers
by sarpomira
Monday 23rd October 2023 8:07pm
Forum: General
Topic: View a web page in a standard Gambas GUI application
Replies: 2
Views: 7473

View a web page in a standard Gambas GUI application

Hello, Can anyone point me in the right direction regarding which control needs to be dropped into my form in order to display a web page ? Could it be the HtmlView control in the Project --> Properties ..> Components menu ? I did import this control but I can't see any "URL" field in it's...
by sarpomira
Thursday 15th July 2021 1:41pm
Forum: General
Topic: Launch and External Application
Replies: 4
Views: 2990

Re: Launch and External Application

Thank you all !

This worked for me.
''Requires the gb.desktop component
 
Public Sub cmdExec_Click()
   
  Desktop.Open(User.Home &/ "Desktop/App.py", True)
   
End
Cheers !