how to setup the webhook if there is any video.
everything is working now thanks for the help
how to setup the webhook if there is any video.
everything is working now thanks for the help
Hi
Clock is working fine how to add SPECIAL MESSAGES like Birthdays and New year in the code
Thanks
@gur001, the code is all there for you to dig in and figure out! I suggest you look at the scrolling clock and add your text to the second line. You can add code to trigger on specific dates and change the text with that. Have fun!
you can see an example in Paul’s RGB Pong Clock Example
/********* USING SPECIAL MESSAGES **********/
#define USING_SPECIAL_MESSAGES
#ifdef USING_SPECIAL_MESSAGES
struct SpecialDays {
int month, day;
char* message;
};
const SpecialDays ourHolidays[] = { //keep message to < 40 chars
{ 1, 1, "HAPPY NEW YEAR"},
{ 2, 14, "HAPPY ST PATRICKS DAY"},
{ 4, 1, "HAPPY BIRTHDAY TOM"},
{ 7, 4, "HAPPY 4TH OF JULY"},
{ 7, 15, "HAPPY ANNIVERSARY"},
{ 8, 12, "HAPPY BIRTHDAY GRAMPA"},
{ 9, 26, "HAPPY BIRTHDAY CHASE AND CHANDLER"},
{10, 31, "HAPPY HALLOWEEN"},
{11, 1, "HAPPY BIRTHDAY PATCHES"},
{12, 25, "MERRY CHRISTMAS"}
};
#endif
thanks
hi man.
how did you make it working.
i mean weather .
thanks
Hi
you have to go to this website " https://console.particle.io/integrations " Login in to your account and click on Integration button, then click new Integration. After that click webhook button and then custom json. On the bottom line just change the City and the API key and then press the create Webhook button.
{
“event”: “uniqueHookName”,
“url”: “http://api.openweathermap.org/data/2.5/forecast/daily”,
“requestType”: “POST”,
“headers”: null,
“query”: {
“q”: “{{city}}”,
“mode”: “json”,
“units”: “{{units}}”,
“cnt”: 7,
“appid”: “{{apikey}}”
},
“responseTemplate”: “{{#list}}{{temp.day}}{{#weather}}~{{id}}~{{/weather}}{{/list}}”,
“json”: null,
“auth”: null,
“noDefaults”: true,
“devideid”: null,
“mydevices”: true
}
Thanks.
It working.
hi Gur001.
do you know how to set up different clock modes?
and what i can send to the clock.
thanks
Hi
I think different clock modes changes every 5 minutes. you are able to change the timing in .ino file.
if (millis() - modeSwitch > 120000UL) { //Switch modes every 5 mins
clock_mode++;
Thanks man.
Can I set up only 1 mode?
@tpd25w, you can call for different modes via the “setMode” Particle.function():
setMode mode where mode can be: normal, pong, word, jumble, spectrum, quick, plasma, marquee, life or rainbow
(note: must be lower case)
You can also change the city for the weather using:
setMode city=cityname where cityname is a valid opeaweathermap city name which is composed of city, a comma, then a two letter state or province abbreviation (eg. Ottawa,ON).
Personally, I really like using OakTerm for accessing my devices. Open the link, log in using your Particle Build credentials and select your device from the pull-down pick-list. You can then select “Functions” and you will see the “setMode” function listed. Click on it and type the desired mode in and press Enter. The clock will cycle through the mode-change animation (pacman) and switch to the selected mode.
Thanks guys.
It works perfect.
Thanks for your help.
I have 32x32 matrix and want to make clock to show constantly weather rotation on the 32x16 bottom and the pong clock on top 32x16.
Can you please give me directions where and what i can change to get it work.
thanks.
@tpd25w, you will need to combine the pong “clock” with the weather “interlude” into one. I call it an interlude because it does its thing and goes back to the currently running clock. To combine these, you will need to get into the code and get your hands dirty
that what i want to do- just make a compilation of 2 of them.
dont want and cant do anything complicated- small letters and punctuations hates me.
i try codding and it look like not really my field, but i think i can try combining 2 parts together.
thanks
I’ve got a work-in-progress library that allows you to combine several animations and run them in parallel
If you’re interested
@ScruffR… show off
Sorry - didn’t mean to
I have two 32x32 panels(that are different sizes, I think one is P4 and the other isP6) and wanted to mount them side by side so I laser cut a mount. It may be of interest to others.
Just a bit of fun.
@peekay123 I’m using parts of your RGB Pong Clock code to make a custom display routine.
I have added your Fonts 5x5 and 5x3 files to my project and they are being used for the Word Clock program successfully.
I’ve looked all through the Pong Clock code but so far can’t seem to locate the code that allows you to call a new font to be used when printing text on the LED matrix.
I would like to use the font’s you already have and add some new ones but I have to figure out how to use them first
I looked at Adafruits Matrix library but they only show how to increase the font size by increments of 1.
Any help is apperciated!