Ah, thanks. Got it, but it still doesn't update. Maybe Im missing something, somewhere..
Niklas Den tisdag 11 juli 2017 kl. 17:25:04 UTC+2 skrev Tom Keffer: > > [[HomeKit]] is not a generation interval recognized by the Cheetah report > generator. You probably want [[ToDate]] (generate for the present time): > > [CheetahGenerator] > [[ToDate]] > [[[HomeKit]]] > encoding = utf8 > template = HOMEKIT/homekit.txt.tmpl > > -tk > > > > On Tue, Jul 11, 2017 at 8:05 AM, Niklas Berglund <[email protected] > <javascript:>> wrote: > >> Hi, >> >> Im trying to get CheetahGenerator to update a txt file from a template >> that I created. >> >> Im using this config in the "Skin.conf" (Im using SofaSkin) >> >> [CheetahGenerator] >> # This section is used by the generator CheetahGenerator, and >> specifies >> # which files are to be generated from which template. >> # Possible encodings are 'html_entities', 'utf8', or 'strict_ascii' >> encoding = html_entities >> >> [[HomeKit]] >> # Reports to Apple HomeKit >> encoding = utf8 >> template = HOMEKIT/homekit.txt.tmpl >> >> and in my /etc/weewx/skins/Sofaskin-v1/HOMEKIT folder I have the template >> (homekit.txt.tmpl), looking like this: >> >> { >> "lightlevel": $current.radiation >> } >> >> and from that Im expecting the "/var/www/html/weewx/HOMEKIT/homekit.txt" >> to update. But it hasn't even created that file. >> >> I dont know what Im doing wrong, weewx created the folder "HOMEKIT" >> though.. >> >> >> I've rebooted the Pi and restarted weewx but still nothing >> >> >> Does anyone have a clue ? >> >> Thanks, >> Niklas >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "weewx-user" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
