• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Missing generic protocol to store A value
#1
I am trying to store a value in pilight, just a number with 2 digits. The numbers are comming from an external light sensor pushing his measuremnts in to pilight every 30 seconds thru http. This works fine but I am using now A generic weather protocol and store my values as A temperature. Maybe it is a Goog idea to add A generic protocol to store values like a float or double?
 
Reply
#2
You can use the generic_label for that as well.
 
Reply
#3
(10-15-2018, 10:55 AM)curlymo Wrote: You can use the generic_label for that as well.

Thanks for your quick reply! If I  use the generic_label for this it will be stored as A string or not? I wan`t to use this value in a rule, some thing like >=20. This will not work if I store it in A generic_label I asume.
 
Reply
#4
Have you tried it?
 
Reply
#5
(10-15-2018, 12:32 PM)curlymo Wrote: Have you tried it?

No Smile
 
Reply
#6
It worked, NiceSmile. I still think that the word Generic label is A little bit misleading. It gives me the idea that you can only store strings no, numbers. In the manual it says that you can store any value, then it should more named line generic object.

I was also wondering if it is possible in pilight to check if current time is between 22.30 pm and 7.00 am. I have this working in my setup but the rule is really long and it does`t seem to me as A clean solution.
 
Reply
#7
Your second question is a nice one for a separate topic.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  sending special sequences with raw protocol eunger 1 1,227 05-12-2016, 08:40 PM
Last Post: curlymo
  "pilight failed!" with elro_hc protocol device o1y 0 1,945 05-09-2015, 02:44 PM
Last Post: o1y
  Bug Report: pilight will not compile if the ARP protocol is not specified UndeadKernel 1 2,247 05-01-2015, 09:41 PM
Last Post: curlymo
  Execute python script from Generic Switch? panton 4 3,817 04-28-2015, 07:58 AM
Last Post: curlymo
  config protocol 'program' - stop-command for Flamingo Workaround flowolf 1 3,311 02-13-2015, 01:39 PM
Last Post: Flexzuu
  mumbi - protocol not installed? markus2004 6 3,815 02-07-2015, 07:17 PM
Last Post: terrar
  2 Devices (one raw, one with protocol) in one action holybabel 1 1,996 12-22-2014, 06:17 PM
Last Post: curlymo
  mirror.txt is missing TheWheel 1 1,209 09-16-2014, 12:17 PM
Last Post: curlymo
  Control a different protocol from a device WaaZaa 1 2,062 04-07-2014, 10:12 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)