Search found 1308 matches

by Dinosaur
Dec 08, 2019 20:52
Forum: General
Topic: Duplicate Definition
Replies: 4
Views: 184

Re: Duplicate Definition

Hi All

Thanks for that badidea, I guess I would have found it earlier if I had done that.

Regards
by Dinosaur
Dec 08, 2019 15:43
Forum: General
Topic: Duplicate Definition
Replies: 4
Views: 184

Re: Duplicate Definition

Hi Sarg Thank you for that explanation, BUT not knowing (or wanting to) know how the compiler works it is opening both files in order to get this error. So logic dictates that it knows the location of both instances of the repeated declaration. Also by allowing include files with the same name (but ...
by Dinosaur
Dec 08, 2019 4:01
Forum: General
Topic: Duplicate Definition
Replies: 4
Views: 184

Duplicate Definition

Hi All I just spent hours trying to find the reason for "Duplicate Definition" and IMHO there are some shortcomings in how these errors are presented. /usr/local/include/freebasic/allegro.bi(146) error 4: Duplicated definition, ALLEGRO_COLOR8 in '#define ALLEGRO_COLOR8' Firstly Why is the ...
by Dinosaur
Nov 27, 2019 1:55
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 150
Views: 7692

Re: TP-Link HS110

Hi All Expanded the system to 32 devices with the last 8 being Smart Switches (ie:HS200) Turns out the important commands are identical to the Smart Plug. Also incorporated a "Link" to the All ON /OFF button, so by enabling this link on any of the switches you can manually turn this switch...
by Dinosaur
Nov 24, 2019 16:36
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 150
Views: 7692

Re: TP-Link HS110

Hi All Other things to do today. Me too. Next step is to integrate a HS200 switch so that I have a "person operated" input into the program. Haven't found the protocol for that yet. Whilst looking found this, https://www.openhab.org/docs/ but decided it is to involved for my simple applica...
by Dinosaur
Nov 24, 2019 0:19
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 150
Views: 7692

Re: TP-Link HS110

Hi Badidea MStatus.Level = 3 'so we can see / edit all detail You already have full access, and if you look through the code you will find my birthday. Regards Edit: I note your scan time is zero as it is on my laptop, but it increase to about 10 on the BBB and goes into the hundreds when running. S...
by Dinosaur
Nov 23, 2019 23:55
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 150
Views: 7692

Re: TP-Link HS110

Hi badidea I was afraid that Allegro was going to be the stumbling block. I have zipped the library onto my site, so if you just change badidea.zip to liballeg.zip you can download it. The program starts by checking the Router or first device. However you can't edit the first device or Router if you...
by Dinosaur
Nov 19, 2019 1:52
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 150
Views: 7692

Re: TP-Link HS110

Hi All badidea thanks for the offer, and like to take you up on that. I can only test so much, but as soon as you install it, there will probably be totally different problems. Although I am happy with the performance and functions, there are little annoyances like delays in focus when selecting but...
by Dinosaur
Nov 15, 2019 18:50
Forum: Linux
Topic: Finding Home folder in FB
Replies: 3
Views: 325

Re: Finding Home folder in FB

Hi All

Many thanks for the replies.
The echo $HOME was an immediate fix, but interested in persuing MrSwiss suggestions
of separating the program access & dependant files.

@badidea , I have sent you a PM re HS110

Regards
by Dinosaur
Nov 15, 2019 17:19
Forum: Linux
Topic: Finding Home folder in FB
Replies: 3
Views: 325

Finding Home folder in FB

Hi All In my code I usually specify the Paths in presets.bi as follows. Paths.Root = "/home/dinosaur/hmi/" Paths.Config = Paths.Root + "control/" Paths.Font = Paths.Root + "fonts/" Paths.Photo = Paths.Root + "bitmaps/" Paths.Text = Paths.Root + "text/&quo...
by Dinosaur
Nov 10, 2019 16:00
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 150
Views: 7692

Re: TP-Link HS110

Hi All Great work badidea, love the auto scaling. Only one complaint, when the screen is set for 1024x768 the text at the bottom is not readable. Same issue I had with the 7" screen, that is the Title bar. BY resetting it to 1024x738 it works, but the graticule becomes a bit distorted. I will t...
by Dinosaur
Nov 09, 2019 16:40
Forum: General
Topic: Len of udt
Replies: 7
Views: 288

Re: Len of udt

Hi All

And indeed it was, as you were using PUT with a position index that you intended to be a record number but was in fact a byte number when you opened in BINARY format.
And I woke up to that the first test after all the replies.

Thanks to all once again.
Oh for the simple QB days.

Regards
by Dinosaur
Nov 09, 2019 14:03
Forum: General
Topic: Len of udt
Replies: 7
Views: 288

Re: Len of udt

Hi All Many thanks for all the detailed replies and the effort put into it. This started because of corrupted data in the file that stored the Smarty udt. In the end I filled all the fields with zeroes except for the string which I filled with "ABCDEFGHI". In a Hex editor I could see the 7...
by Dinosaur
Nov 09, 2019 2:26
Forum: General
Topic: Len of udt
Replies: 7
Views: 288

Len of udt

Hi All Basically I want to write this udt to a file, and it does not matter which way I approach it, the numbers don't stack up. The UDT Type Smarties PortNbr As Integer = 0 'as edited in Settings2 Emergency As Long = 0 AutoMan As Long = 0 '0 or 1 Ignore As Long = 0 '0 or 1 DayNbr(1 to 7) As Long On...
by Dinosaur
Nov 08, 2019 0:54
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 150
Views: 7692

Re: TP-Link HS110

Hi All Jeez those pics bring back memories. My experience with this is to initialize the scale to the higher range, and then I usually scale the screen to see the critical area I am interested in. Clipping the top of the spikes in those circumstances are ok, as long as you get the detail in the area...

Go to advanced search