Time & Temp Announcer Script


(Don) #21

So do I put |jq ‘[.[]]|.[3].periods[0].temperature’ in the dial plan?


(Simon Telephonics) #22

Yes, anywhere it fits!:rofl:


#23

well you put it indirectly in the dialplan perhaps using shell(), probably easier after RTFM again, (how did it go the last time, you were real quick!)


(Lorne Gaetz) #24

Read the fleeting manual. It’s a quick read.


#25

You mean the one with small print that comes with the bottle with a tube? If so, yep real quick results.


(Don) #26

So how do I write the bash or php script I have this for the temperature.

curl http://api.openweathermap.org/data/2.5/weather?zip=10001,&appid=(apikeyredactedbymod)&units=imperial


#27

pipe that though jq, there are FM’s for that too :slight_smile:

(you just gave away your family jewels :wink: )


(Don) #28

So I need to put that in jq?


#29

No, you need to ‘pipe’ it through jq (that’s in the FM also)


(Don) #30

How do I do that?


#31

By RTFM ! (or should I say “By RTFM |”)