Hello,
Is it possible to use PB on the Raspberry PI 3,4?
Cheers,
Jan Kromhout
Search found 65 matches
- Thu Dec 05, 2019 6:25 pm
- Forum: Linux
- Topic: Raspberry Pi
- Replies: 2
- Views: 2031
- Thu Dec 05, 2019 6:13 pm
- Forum: Coding Questions
- Topic: HTTPRequest
- Replies: 8
- Views: 2601
Re: HTTPRequest
Thanks all for the help.
The code was verry helpfull.
CHEERS
The code was verry helpfull.
CHEERS
- Thu Dec 05, 2019 4:46 pm
- Forum: Coding Questions
- Topic: HTTPRequest
- Replies: 8
- Views: 2601
HTTPRequest
Hello,
I try to read data from the openweathermap.org. Have good results with python.
I use this simple python code:
# Enter your API key here
api_key = "e8b010e1ab578d6426ad5a9359f636c1"
# base_url variable to store url
base_url = "http://api.openweathermap.org/data/2.5/weather?"
# Give city ...
I try to read data from the openweathermap.org. Have good results with python.
I use this simple python code:
# Enter your API key here
api_key = "e8b010e1ab578d6426ad5a9359f636c1"
# base_url variable to store url
base_url = "http://api.openweathermap.org/data/2.5/weather?"
# Give city ...
- Tue Nov 21, 2017 12:48 pm
- Forum: Coding Questions
- Topic: How to get UTC time in PB under Mac OSX
- Replies: 1
- Views: 799
How to get UTC time in PB under Mac OSX
Hello,
How do I get the UTC time in PB (MacOSX)
Can't find a OSX exsample!
Cheers,
Jan
How do I get the UTC time in PB (MacOSX)
Can't find a OSX exsample!
Cheers,
Jan
- Thu Jun 15, 2017 10:36 am
- Forum: Coding Questions
- Topic: Rad line by line from url
- Replies: 1
- Views: 1140
Rad line by line from url
I have this code thats read the entire file at once.
Is is posible to read the contence of the file line by line from the URL?
Thanks for any help
;--------------------------------------------------------------------------
;
; Get the contence of the stations.txt from NORAD over the Internet ...
Is is posible to read the contence of the file line by line from the URL?
Thanks for any help
;--------------------------------------------------------------------------
;
; Get the contence of the stations.txt from NORAD over the Internet ...
- Thu May 18, 2017 11:00 am
- Forum: Coding Questions
- Topic: Plotting to window
- Replies: 0
- Views: 1317
Plotting to window
Working to code a Planetarium.
Have some base code to open a main screen.
After opening the main screen I need to do some drawings to it.
The routines are stored an a separated file
Where should I put in the procedure call "drawPlanetarium" to get it running? :(
Thanks for any help :lol ...
Have some base code to open a main screen.
After opening the main screen I need to do some drawings to it.
The routines are stored an a separated file
Where should I put in the procedure call "drawPlanetarium" to get it running? :(
Thanks for any help :lol ...
- Mon May 15, 2017 4:10 pm
- Forum: Coding Questions
- Topic: Keayboard action
- Replies: 3
- Views: 1345
Keayboard action
I wont to change the variable FacingAzimuth with the left- or right key.
The code is working but when I tough the key for a short moment PB is so fast the value is change to much.
How can I change the the code in the way that the value is increment or decrement with one independent of how long I ...
The code is working but when I tough the key for a short moment PB is so fast the value is change to much.
How can I change the the code in the way that the value is increment or decrement with one independent of how long I ...
- Sat Apr 29, 2017 9:38 am
- Forum: Coding Questions
- Topic: GetTimeZoneInformation_
- Replies: 9
- Views: 4010
Re: GetTimeZoneInformation_
Thanks just what I needed



- Thu Apr 27, 2017 10:11 am
- Forum: Coding Questions
- Topic: GetTimeZoneInformation_
- Replies: 9
- Views: 4010
Re: GetTimeZoneInformation_
Thanks again for this routine. It is very useful for me. :lol:
Is it posible to extract only the value 7200 from the message, this is the offset I need from UTC.
Outcomming:
Daylight saving is activated.
Time offset = 60 minutes
Time zone description: Europe/Amsterdam (CEST) offset 7200 ...
Is it posible to extract only the value 7200 from the message, this is the offset I need from UTC.
Outcomming:
Daylight saving is activated.
Time offset = 60 minutes
Time zone description: Europe/Amsterdam (CEST) offset 7200 ...
- Mon Apr 24, 2017 2:57 pm
- Forum: Coding Questions
- Topic: GetTimeZoneInformation_
- Replies: 9
- Views: 4010
Re: GetTimeZoneInformation_
This is perfect, just what I need for my programShardik wrote:Did you already try whether my MacOS example may help you?
- Mon Apr 24, 2017 8:32 am
- Forum: Coding Questions
- Topic: Change color of button
- Replies: 3
- Views: 2473
Change color of button
I wont to change the color of a button under runtime.
When I click on it it should change into red, when I click again back into the original color and so on.
Have no clou how to do that.
some help
When I click on it it should change into red, when I click again back into the original color and so on.
Have no clou how to do that.
some help
- Sun Apr 23, 2017 1:59 pm
- Forum: Coding Questions
- Topic: GetTimeZoneInformation_
- Replies: 9
- Views: 4010
Re: GetTimeZoneInformation_
API: https://msdn.microsoft.com/de-de/library/windows/desktop/ms724421(v=vs.85).aspx
Update
Procedure.s GetTimeString(*Systemtime)
Protected dTime.s = Space(64)
Protected sTime.s = Space(64)
Protected r1, r2, result.s
r1 = GetDateFormat_(#LOCALE_USER_DEFAULT, #Null, *Systemtime, #Null ...
Update
Procedure.s GetTimeString(*Systemtime)
Protected dTime.s = Space(64)
Protected sTime.s = Space(64)
Protected r1, r2, result.s
r1 = GetDateFormat_(#LOCALE_USER_DEFAULT, #Null, *Systemtime, #Null ...
- Sat Apr 22, 2017 3:35 pm
- Forum: Coding Questions
- Topic: Put time on the caption of the main form
- Replies: 8
- Views: 2829
Re: Put time on the caption of the main form
Perhaps like this
Enumeration
#FrmMainGenerator
#FrmMainCopy
EndEnumeration
Procedure PutTimeInCaption()
time$=FormatDate("%mm/%dd/%yyyy", Date()) +" "+FormatDate("%hh:%ii:%ss", Date())
SetWindowTitle(#FrmMainGenerator, Time$)
EndProcedure
Procedure FrmMain_Events(event)
EndProcedure ...
Enumeration
#FrmMainGenerator
#FrmMainCopy
EndEnumeration
Procedure PutTimeInCaption()
time$=FormatDate("%mm/%dd/%yyyy", Date()) +" "+FormatDate("%hh:%ii:%ss", Date())
SetWindowTitle(#FrmMainGenerator, Time$)
EndProcedure
Procedure FrmMain_Events(event)
EndProcedure ...
- Sat Apr 22, 2017 3:23 pm
- Forum: Coding Questions
- Topic: GetTimeZoneInformation_
- Replies: 9
- Views: 4010
GetTimeZoneInformation_
Found this piece of code.
But PB is not recognized the function "GetTimeZoneInformation_"
How to used it? :?
Result = GetTimeZoneInformation_(@tzi.TIME_ZONE_INFORMATION)
Debug "unterschied zu UTC Zeit = "+Str(Result)
Debug "---------------------------------------"
Debug tzi\bias
Debug tzi ...
But PB is not recognized the function "GetTimeZoneInformation_"
How to used it? :?
Result = GetTimeZoneInformation_(@tzi.TIME_ZONE_INFORMATION)
Debug "unterschied zu UTC Zeit = "+Str(Result)
Debug "---------------------------------------"
Debug tzi\bias
Debug tzi ...
- Sat Apr 22, 2017 2:44 pm
- Forum: Coding Questions
- Topic: Daylight Saving Time
- Replies: 2
- Views: 1432
Daylight Saving Time
I need to detect in my program if the DST is active.
Is it posible to do this in PB?
Have looked into the forum but with no results.
Appreciate any help
Is it posible to do this in PB?
Have looked into the forum but with no results.

Appreciate any help
