Can't see device from playground plugin

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
Grumpf
Normal user
Posts: 32
Joined: 05 May 2017, 23:45
Location: Namur
Contact:

Can't see device from playground plugin

#1 Post by Grumpf » 02 Aug 2020, 14:10

Hi,
I wanted to add P242 (ILI9341) to my build. I added a #define USES_P242 in custom.h, and add the correct .ino. It compiles fine but the list of available devices is still the default one. I also see devices that I removed...

So in other words, it seems my custom.h is ignored ? Do I have to modify something else ?

Thanks a lot,

Grumpf.

User avatar
Ath
Normal user
Posts: 110
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Can't see device from playground plugin

#2 Post by Ath » 02 Aug 2020, 15:59

Have you added #define USE_CUSTOM_H somewhere in your source or in your build environment?

User avatar
Grumpf
Normal user
Posts: 32
Joined: 05 May 2017, 23:45
Location: Namur
Contact:

Re: Can't see device from playground plugin

#3 Post by Grumpf » 02 Aug 2020, 17:29

Unfortunately I was using Arduino IDE that does not allow that (or does it?).

I tried PlatefromIO with UV but it's too complicated for me for now. I'll go on with some tutorial to learn it. Meanwhile I just modified the define_plugin_sets.h like a redneck :oops:

But it worked, I needed the SI1175 & the ILI9341.

Using some rules I can publish the 3 value from the SI1175 to domoticz so that's a win :)
Now I have to try the ILI9341...

Thanks.

User avatar
Grumpf
Normal user
Posts: 32
Joined: 05 May 2017, 23:45
Location: Namur
Contact:

Re: Can't see device from playground plugin

#4 Post by Grumpf » 02 Aug 2020, 17:30

Oh wait, you mean I can simply use a #define in the the main ino and that'll work ?
Sorry noob here.

User avatar
Ath
Normal user
Posts: 110
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Can't see device from playground plugin

#5 Post by Ath » 02 Aug 2020, 17:44

Ehm, since release mega-20200426, the ILI9341 plugin has been included as P095, but I'm not sure if it is included in any of the standard builds (it's quite large when all libraries are linked in).

You could suffice with just enabling it in define_plugin_sets.h for the PLUGIN_SET_TESTING or add it to your specific configuration by defining USES_P095. (And then you also get the fixes/updates that have been done since it was added on the playground.)

User avatar
Grumpf
Normal user
Posts: 32
Joined: 05 May 2017, 23:45
Location: Namur
Contact:

Re: Can't see device from playground plugin

#6 Post by Grumpf » 02 Aug 2020, 17:56

I was using DEV but it was not enabled by default. I did precisely what you said and it worked. OTOH to receive all the values I had to add those rules :

Code: Select all

on SI1145#UV do
  SendToHTTP 172.19.0.63,80,/json.htm?type=command&param=udevice&idx=1009&nvalue=0&svalue=[SI1145#UV]
endon
on SI1145#INFRA do
  SendToHTTP 172.19.0.63,80,/json.htm?type=command&param=udevice&idx=1010&nvalue=0&svalue=[SI1145#INFRA]
endon
Thank you all for your help, I'll come back with more questions soon and, maybe try to answer some myself later !
Cheers.

User avatar
Ath
Normal user
Posts: 110
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Can't see device from playground plugin

#7 Post by Ath » 02 Aug 2020, 19:13

Grumpf wrote:
02 Aug 2020, 17:56

Code: Select all

SendToHTTP 172.19.0.63,80,/json.htm?type=command&param=udevice&idx=1009&nvalue=0&svalue=[SI1145#UV]
That smells like you are using Domoticz, right? You should be able to use the Domoticz HTTP or MQTT controllers to send that data there. After setting up the controller, you should only need to set the idx value at the plugin for that controller.

User avatar
Grumpf
Normal user
Posts: 32
Joined: 05 May 2017, 23:45
Location: Namur
Contact:

Re: Can't see device from playground plugin

#8 Post by Grumpf » 03 Aug 2020, 08:27

Yes, thank you. Thatr's what I did and it worked. WE can consider my issue worked around :)
Thanks everyone for extremely fast answers.

Cheers !

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 13 guests