Try and insert 
 for the newline
On Friday, 29 December 2017 15:35:10 UTC+2, Chris Alemany wrote:
> Thanks for the mental push on ‘the whole twitter section”. I’ve figured
> out the day rain issue.
>
> I was using METRIC rather than METRICWX so dayRain was reporting in cm
> rather than mm. Since it was a small amount of rain… it was reporting
> 0.0cm. We’ve subsequently had almost 20mm of rain today, which means there
> is enough to notice the units mixup.
>
> Here is the successful wview.conf including the formatting used for the
> tweet below:
>
> station = Hourly Auto-Tweet
> unit_system = METRICWX
> post_interval = 3600
> format_None = *
> format = "{station} {dateTime:%H:%M %b %d %Y}: T: {outTemp:%.1f}ºC D:
> {dewpoint:%.1f}ºC W: {windDir:ORD} {windSpeed:%.1f}kph gusting to
> {windGust:%.1f}kph H: {outHumidity:%.0f}% P: {barometer:%.2f}hPa Rain
> {dayRain:%.2f}mm Rain Rate: {rainRate:%.1f}mm/hr Chill:{windchill:%.1f}ºC
> HIndex:{heatindex:%.1f}ºC Solar: {radiation:%.0f}W/m2 UV: {UV:%.0f}
> #PortAlberni https://www.alberniweather.ca
> https://www.youtube.com/alberniweather"
>
> https://twitter.com/Auto_AlberniWx/status/946581641299771392
>
> So that is good.
>
> Unfortunately, I have not found a solution to the original request of
> inserting a new line. But I am willing to let it go and chalk it up to a
> limitation of twython. :)
>
> Thank you all for your help and suggestions.
>
> Chris
>
>
>
> On Dec 28, 2017, at 6:40 PM, Thomas Keffer <[email protected] <javascript:>>
> wrote:
>
> You're not making it easy!
>
> Make sure you're showing us the correct format and the exact output that
> goes along with it. Better yet, cut and paste the whole twitter section of
> your weewx.conf.
>
> Python is case-sensitive, so you definitely want dayRain.
>
> -tk
>
> On Thu, Dec 28, 2017 at 5:24 PM, Chris Alemany <[email protected]
> <javascript:>> wrote:
>
>> Apologies I had removed it temporarily.... it is supposed to be before
>> Rain Rate.
>>
>> format = "{station} {dateTime:%H:%M %b %d %Y}: T: {outTemp:%.1f}ºC D:
>> {dewpoint:%.1f}ºC W: {windDir:ORD} {windSpeed:%.1f}kph gusting to
>> {windGust:%.1f}kph H: {outHumidity:%.0f}% P: {barometer:%.2f}hPa Rain
>> {dayrain:%.1f}mm Rain Rate: {rainRate:%.1f}mm/hr Chill:{windchill:%.1f}ºC
>> HIndex:{heatindex:%.1f}ºC Solar: {radiation:%.0f}W/m2 UV: {UV:%.0f}
>> #PortAlberni https://www.alberniweather.ca
>> https://www.youtube.com/alberniweather"
>>
>> On Thursday, December 28, 2017 at 5:07:45 PM UTC-8, Tom Keffer wrote:
>>>
>>> format = "{station} {dateTime:%H:%M %b %d %Y}: T: {outTemp:%.1f}ºC D:
>>>> {dewpoint:%.1f}ºC W: {windDir:ORD} {windSpeed:%.1f}kph gusting to
>>>> {windGust:%.1f}kph H: {outHumidity:%.0f}% P: {barometer:%.2f}hPa Rain
>>>> Rate:
>>>> {rainRate:%.1f}mm/hr Chill:{windchill:%.1f}ºC HIndex:{heatindex:%.1f}ºC
>>>> Solar: {radiation:%.0f}W/m2 UV: {UV:%.0f} #PortAlberni
>>>> https://www.alberniweather.cahttps://www.youtube.com/alberniweather"
>>>
>>>
>>> I'm not seeing dayrain (or dayRain) in your format at all. Where is it
>>> coming from?
>>>
>>> -tk
>>>
>>> On Thu, Dec 28, 2017 at 4:48 PM, Chris Alemany <[email protected]>
>>> wrote:
>>>
>>>> This is the format string:
>>>>
>>>> format = "{station} {dateTime:%H:%M %b %d %Y}: T: {outTemp:%.1f}ºC D:
>>>> {dewpoint:%.1f}ºC W: {windDir:ORD} {windSpeed:%.1f}kph gusting to
>>>> {windGust:%.1f}kph H: {outHumidity:%.0f}% P: {barometer:%.2f}hPa Rain
>>>> Rate:
>>>> {rainRate:%.1f}mm/hr Chill:{windchill:%.1f}ºC HIndex:{heatindex:%.1f}ºC
>>>> Solar: {radiation:%.0f}W/m2 UV: {UV:%.0f} #PortAlberni
>>>> https://www.alberniweather.ca https://www.youtube.com/alberniweather"
>>>>
>>>> This is what twitter output looks like (same for dayRain or dayrain as
>>>> variable):
>>>>
>>>> Hourly Auto-Tweet 16:45 Dec 28 2017: T: 2.4ºC D: 2.4ºC W: * 0.0kph
>>>> gusting to 0.0kph H: 100% P: 1013.07hPa Rain: {dayrain:%.1f}mm Rain Rate:
>>>> 0.0mm/hr Chill:2.4ºC HIndex:2.4ºC Solar: 0W/m2 UV: 0 #PortAlberni
>>>> <https://twitter.com/hashtag/PortAlberni?src=hash> https://www.
>>>> alberniweather.ca <https://t.co/ii27SDt2D8>
>>>>
>>>> and
>>>>
>>>> Hourly Auto-Tweet 16:40 Dec 28 2017: T: 2.5ºC D: 2.5ºC W: * 0.0kph
>>>> gusting to 0.0kph H: 100% P: 1013.04hPa Rain: {dayRain:%.1f}mm Rain Rate:
>>>> 0.0mm/hr Chill:2.5ºC HIndex:2.5ºC Solar: 0W/m2 UV: 0 #PortAlberni
>>>> <https://twitter.com/hashtag/PortAlberni?src=hash> https://www.
>>>> alberniweather.ca <https://t.co/ii27SDt2D8>
>>>>
>>>>
>>>> On Thursday, December 28, 2017 at 4:45:42 PM UTC-8, Chris Alemany wrote:
>>>>>
>>>>> no improvement. :(
>>>>>
>>>>> On Thursday, December 28, 2017 at 4:19:58 PM UTC-8, mwall wrote:
>>>>>>
>>>>>> On Thursday, December 28, 2017 at 6:52:36 PM UTC-5, Chris Alemany
>>>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>> I used dayrain without success.
>>>>>>>
>>>>>>
>>>>>> at line 267 of twitter.py change this:
>>>>>>
>>>>>> def process_record(self, record, dummy_manager):
>>>>>>
>>>>>> if self.unit_system is not None:
>>>>>>
>>>>>> record = weewx.units.to_std_system(record,
>>>>>> self.unit_system)
>>>>>>
>>>>>> record['station'] = self.station
>>>>>>
>>>>>> to this:
>>>>>>
>>>>>> def process_record(self, record, mgr):
>>>>>>
>>>>>> record = self.get_record(record, mgr)
>>>>>>
>>>>>> if self.unit_system is not None:
>>>>>>
>>>>>> record = weewx.units.to_std_system(record,
>>>>>> self.unit_system)
>>>>>>
>>>>>> record['station'] = self.station
>>>>>>
>>>>>> then restart weewx.
>>>>>>
>>>>>> m
>>>>>>
>>>>>
>>>> --
>>>> 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.
>>>>
>>>
>>>
>> --
>> 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 a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/YXlx_CAWO5Q/unsubscribe.
> To unsubscribe from this group and all its topics, 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.