--
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Bonjour, De mon côté, j'ai ajouté un capteur de température piscine sur wmr88 + raspberrypi.
J'ai été en mesure de faire obtenir les mesures alors que je peux le voir sur l'écran de la station. J'ai enlevé le cas sur la température de l'étang dans le modèle standard. Après cette discussion, j'ai essayé d'ajouter également current.extratemp2 et 3. mais je reçois seulement N / A pour la valeur 3 current.extratemp1 $, 2,3. Ai-je raté quelque chose pour permettre des mesures supplémentaires? Le mercredi 27 février 2013 21:18 : 06 UTC +1, Graham Davies a écrit: > Salut Tom, > > > Vraiment vous remercie de votre réponse rapide sur ce point - merci beaucoup. J'ai mis en place vos suggestions et tout semble fonctionner comme vous le suggérez. Je vais jouer avec les peaux dépose un peu plus, mais il semble que les capteurs supplémentaires sont maintenant enregistrées dans la base de données statistiques. > > > Merci encore pour cela et votre excellent travail par écrit et en soutenant le code. > > > Regards , > Graham
--
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
pi@raspberrypi /usr/share/weewx $ weewxd /etc/weewx/weewx.conf
Traceback (most recent call last):
File "/usr/bin/weewxd", line 71, in <module>
weewx.wxengine.main(options, args)
File "/usr/share/weewx/weewx/wxengine.py", line 838, in main
engine = EngineClass(config_dict)
File "/usr/share/weewx/weewx/wxengine.py", line 61, in __init__
self.setupStation(config_dict)
File "/usr/share/weewx/weewx/wxengine.py", line 82, in setupStation
__import__(driver)
File "/usr/share/weewx/weewx/wmrx.py", line 284
if channel == 0:
^
IndentationError: unexpected indent
pi@raspberrypi /usr/share/weewx $
print ("Temperature channel=", channel, "T=", T, "R=", R)
| ('Temperature channel=', 0, 'T=', 19.6, 'R=', 44.0) |
| ('Temperature channel=', 1, 'T=', 10.0, 'R=', 88.0) |
--
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
syslog.syslog("Temperature channel=", channel, "T=", T, "R=", R)
The station is running on a raspberry pi but not at my place, I use ssh access. syslog could be easier for long check.
I dont know python, so I am not sure of the syntax for my syslog suggestion.
Best regards,
I found a document about Oregon protocol :
http://wmrx00.sourceforge.net/Arduino/OregonScientific-RF-Protocols.pdf
It talk about thwr800 Page 10 and 11
It look like ID is different and it is shorter frame without humidity
def genLoopPackets(self):
"""Generator function that continuously returns loop packets"""
# Get a stream of raw packets, then convert them, depending on the
# observation type.
for _packet in self.genPackets():
_packet_type = _packet[1]
if _packet_type in WMR_USB._dispatch_dict:
_record = WMR_USB._dispatch_dict[_packet_type](self, _packet)
if _record is not None :
yield _record
elif _packet_type == 0x44:
T = (((_packet[4] & 0x7f) << 8) + _packet[3])/10.0
syslog.syslog(syslog.LOG_NOTICE, "Packet44 Temperature=%f" % T)Apr 2 08:22:45 raspberrypi weewx[7136]: Packet44 Temperature=19.700000def genLoopPackets(self):
"""Generator function that continuously returns loop packets"""
# Get a stream of raw packets, then convert them, depending on the
# observation type.
for _packet in self.genPackets():
_packet_type = _packet[1]
if _packet_type in WMR_USB._dispatch_dict:
_record = WMR_USB._dispatch_dict[_packet_type](self, _packet)
if _record is not None :
yield _record
+ elif _packet_type == 0x44:
+ T = (((_packet[4] & 0x7f) << 8) + _packet[3])/10.0
+ channel = packet[2] & 0x0f
+ syslog.syslog(syslog.LOG_NOTICE, "Packet44 Ch:%d Temperature=%f" % (channel, T))Apr 2 13:55:15 raspberrypi weewx[7940]: Packet44 Ch:2 Temperature=19.200000--
You received this message because you are subscribed to a topic in the Google Groups "Weewx user's group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/NJ-S8-TyvRE/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.