cloudy cloudy

Author Topic: Format of Tweets  (Read 207 times)

0 Members and 1 Guest are viewing this topic.

Offline ChadWeather

  • Posts: 6
  • @ChadWeather
  • Chadderton, Oldham, UK.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.77
    • Oldham Weather (@ChadWeather)
Format of Tweets
« on: November 01, 2018, 08:57:43 PM »
Hi all,

I have set-up Twitter within WD to tweet this.

%time% - Temp %temp%C - Max %maxtemp%C (%maxtempt%) - Min %mintemp%C (%mintempt%) - Dew Pt %dew%C - Feels Like %apparenttemp%C - Wind %gstspd%mph (%dirlabel%) - Max Gust %maxgst%mph - Rain%dayrn%mm - Max Rate %maxrainratehr% mm/hr - Month %monthrn%mm - Humidity %hum%% - Sunrise %sunrise% - Sunset %sunset% #ukweather #wx

Which gives me this on Twitter.

8:00 PM - Temp 4.5C - Max 9.0C (1:00 PM) - Min 4.5C (7:30 PM) - Dew Pt 2.2C - Feels Like 3.4C - Wind 0.0mph (E) - Max Gust 16.1mph - Rain  1.6mm - Max Rate 6.0 mm/hr - Month 1.6mm - Humidity 85% - Sunrise 6:50 am - Sunset 4:18 pm #ukweather #wx

Is there anyway to add new lines (carriage returns) to your tweet so I can have it more neat/structured like so?

8:00 PM

Temp 4.5C
Max 9.0C (1:00 PM)
Min 4.5C (7:30 PM)
Dew Pt 2.2C
Feels Like 3.4C
Wind 0.0mph (E)
Max Gust 16.1mph
Rain  1.6mm
Max Rate 6.0 mm/hr
Month 1.6mm
Humidity 85%
Sunrise 6:50 am
Sunset 4:18 pm

#ukweather #wx

When I used to use Cumulus the tweets were compiled in notepad, twitter.txt, so it was easy to just hit carriage return to structure it.

Thanks in advance,
Jon

Offline Martyn

  • Davis VP2+ FARS/solar/UV
  • Posts: 930
  • Bristol, UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 62.0
    • Horfield/Filton, Bristol, UK weather station
Re: Format of Tweets
« Reply #1 on: November 01, 2018, 11:00:40 PM »
Hi Jon,
yes, put #13 into the setup where you want a carriage return to be.
Martyn,
Bristol, UK

Twitter: https://twitter.com/HorfieldWeather
FB: https://www.facebook.com/bristolweather
CWOP: CW2888
WU: IBRISTOL3

Offline ChadWeather

  • Posts: 6
  • @ChadWeather
  • Chadderton, Oldham, UK.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.77
    • Oldham Weather (@ChadWeather)
Re: Format of Tweets
« Reply #2 on: November 01, 2018, 11:37:05 PM »
Martyn, you absolute legend. Worked a treat.

HUGE THANKS!

 :D :D :D :D :D :D

Cheers,
Jon

Offline ChadWeather

  • Posts: 6
  • @ChadWeather
  • Chadderton, Oldham, UK.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.77
    • Oldham Weather (@ChadWeather)
Re: Format of Tweets
« Reply #3 on: November 02, 2018, 12:13:33 AM »
Hi Martyn,

It works viewing the tweet on a PC (i.e. through Chrome/Edge) but not when you view it via the Twitter app. Any other suggestions or anything that will work for both please?

Thanks for your help.

Cheers,
Jon

Offline Martyn

  • Davis VP2+ FARS/solar/UV
  • Posts: 930
  • Bristol, UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 62.0
    • Horfield/Filton, Bristol, UK weather station
Re: Format of Tweets
« Reply #4 on: November 02, 2018, 08:51:32 AM »
I do not know off-hand. I guess it would be something for the app developer to look at.
Martyn,
Bristol, UK

Twitter: https://twitter.com/HorfieldWeather
FB: https://www.facebook.com/bristolweather
CWOP: CW2888
WU: IBRISTOL3

Offline ChadWeather

  • Posts: 6
  • @ChadWeather
  • Chadderton, Oldham, UK.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.77
    • Oldham Weather (@ChadWeather)
Re: Format of Tweets
« Reply #5 on: November 02, 2018, 10:15:49 AM »
Cheers Martyn. I tried #10 (line feed) just to see if that would work but no luck. I'll have to stick to #13 for now.

Thanks,
Jon

Offline Martyn

  • Davis VP2+ FARS/solar/UV
  • Posts: 930
  • Bristol, UK
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 62.0
    • Horfield/Filton, Bristol, UK weather station
Re: Format of Tweets
« Reply #6 on: November 02, 2018, 01:55:53 PM »
No worries, I think WD only recognises #13 anyway.
Martyn,
Bristol, UK

Twitter: https://twitter.com/HorfieldWeather
FB: https://www.facebook.com/bristolweather
CWOP: CW2888
WU: IBRISTOL3

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,601
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 70.0.3538.77
Re: Format of Tweets
« Reply #7 on: November 02, 2018, 05:47:39 PM »
I have to say that a 17 line tweet would seem to violate the whole twitter concept. How about at least grouping related parameters?

8:00 PM

Temp 4.5C Max 9.0C (1:00 PM) Min 4.5C (7:30 PM)
Feels Like 3.4C Humidity 85% Dew Pt 2.2C
Wind 0.0mph (E) Max Gust 16.1mph
Rain Today 1.6mm Max Rate 6.0 mm/hr Month 1.6mm
Sunrise 6:50 am Sunset 4:18 pm

#ukweather #wx

Offline ChadWeather

  • Posts: 6
  • @ChadWeather
  • Chadderton, Oldham, UK.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.77
    • Oldham Weather (@ChadWeather)
Re: Format of Tweets
« Reply #8 on: November 02, 2018, 07:12:08 PM »
Hi,

Great suggestion. Done! Of course only formats nicely when viewed on a PC browser but looks better.

For some reason my sunrise/sunset times are 18 mins too early. Any suggestions why?

Thanks a lot,
Jon

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,601
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 70.0.3538.77
Re: Format of Tweets
« Reply #9 on: November 02, 2018, 07:29:46 PM »
My guess is that you have the longitude setting incorrect, probably set as negative but WD wants positive for W of Greenwich.

Offline ChadWeather

  • Posts: 6
  • @ChadWeather
  • Chadderton, Oldham, UK.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.77
    • Oldham Weather (@ChadWeather)
Re: Format of Tweets
« Reply #10 on: November 02, 2018, 07:52:10 PM »
Thanks. I had negative instead of positive.

Fixed!!!  :D :D

Cheers for your help!!!

Jon

 

cumulus