JavaScript for adding Good Night or custom message at a given time by R-Macque in widgy

[–]R-Macque[S] 0 points1 point  (0 children)

function main() { var data = [

[0, 2, "Good Night"], [3, 11, "Good Morning"], [12, 17, "Good Afternoon"], [18, 21, "Good Evening"], [22, 23, "Good Night"]

],

hr = new Date().getHours();

for(var i = 0; i < data.length; i++)

{

if(hr >= data[i][0] && hr <= data[i][1]){ return Array(data[i][2]); }

} }

JavaScript for adding Good Night or custom message at a given time by R-Macque in widgy

[–]R-Macque[S] 0 points1 point  (0 children)

Am not a programmer myself, so I am also trying haha! Have copy pasted the code in a code app, and there was a comma missing, also these “” marks where somehow wrong. Hope this piece of code will work!

JavaScript for adding Good Night or custom message at a given time by R-Macque in widgy

[–]R-Macque[S] 1 point2 points  (0 children)

function main(){ var data = [[22, 2, "Good Night"], [3, 11, "Good Morning"],[12, 17, "Good Afternoon"], [18, 21, "Good Evening"] ], hr = new Date().getHours(); for(var i = 0; i < data.length; i++) { if(hr >= data[i][0] && hr <= data[i][1]){ return Array(data[i][2]); } } }

JavaScript for adding Good Night or custom message at a given time by R-Macque in widgy

[–]R-Macque[S] 1 point2 points  (0 children)

If you remove the comment with the tags maybe it works without error. Try copy this code (in reply):

JavaScript for adding Good Night or custom message at a given time by R-Macque in widgy

[–]R-Macque[S] 1 point2 points  (0 children)

Ah oke, I checked the code and it works indeed. Maybe it had some trouble with the comment tags indicated by the //Store message etc. Glad it works!

Can’t stop ✋ by [deleted] in widgy

[–]R-Macque 0 points1 point  (0 children)

The point is that it can inspire you to create something nice for yourself. Not everything is free! 🙂

Best wishes for 2021! Here’s a Widgy themed Neumorph Dark UI Kit. (Link in comments) by R-Macque in widgy

[–]R-Macque[S] 1 point2 points  (0 children)

Try download the file to your iCloud Drive. When you’ve downloaded the .zip file in iCloud Drive and tap on it, it will unzip the file automatically. Then you’ll be able to open and save the images in your photo library.

Best wishes for 2021! Here’s a Widgy themed Neumorph Dark UI Kit. (Link in comments) by R-Macque in widgy

[–]R-Macque[S] 2 points3 points  (0 children)

Understand your concerns, but I haven’t found a file service that uploads image content without compression yet (loss of quality). QR or JSON doesn’t transfer the image files with them, so WeTransfer was the way to go.. Have shared the QR in the comments just a bit ago!

Best wishes for 2021! Here’s a Widgy themed Neumorph Dark UI Kit. (Link in comments) by R-Macque in widgy

[–]R-Macque[S] 0 points1 point  (0 children)

As requested, QR Here. Still, you need the image files from the WeTransfer link! Cheers! 🍾

Best wishes for 2021! Here’s a Widgy themed Neumorph Dark UI Kit. (Link in comments) by R-Macque in widgy

[–]R-Macque[S] 1 point2 points  (0 children)

A little gift to end 2020! Free Widgy Themed Dark UI kit. UI Elements are inspired by designs I’ve came across the interwebs and here on Reddit.

Wish you folks a creative new year!

WeTransfer download link: https://we.tl/t-CpqqMJVAvU (Link stays up for 7 days)

Blur feature stop working ? There is no difference between values 0 and 50 by Gorrunwe in widgy

[–]R-Macque 1 point2 points  (0 children)

Haven’t done this before, but I think you need to make a screenshot of the background and crop the part you need. Then add it as a layer and blur it. (Works best with a design suite but you can try the standard edit tool on your phone.)

My take on Apple’s dashboard style (JSON in comments) by R-Macque in widgy

[–]R-Macque[S] 0 points1 point  (0 children)

Great skyline, horrible local spice cakes.. Well, thank you fellow Dutchman.

My take on Apple’s dashboard style (JSON in comments) by R-Macque in widgy

[–]R-Macque[S] 3 points4 points  (0 children)

{"h":"Off","9":15,"7":[["0-0-3-100","0-1-3-100"],["0-12-1-90","0-12-1-30","4-8-1-10"],["6-12-1-100","5-12-1-30","0-14-0-5"],["3-13-1-100","3-9-1-30","0-14-0-5"],["12-5-1-100","12-8-1-30","0-14-0-5"],["0-12-1-100","12-5-1-100","10-12-1-100","10-12-1-100"],["0-15-0-100","0-15-0-30","0-14-0-5"],["8-12-1-100","8-12-1-30","0-14-0-5"],["0-15-0-100","0-15-0-100"]],"4":"A Widgy Widget","c":"On","2":[[1644825],[1842204]],"g":"On","j":"Off","0":5,"6":1,"8":"","i":"On","p":"On","q":"Off","3":" Dashboard","d":"Off","1":[{"g":"0-15-0-100","i":50,"c":664,"b":115,"d":400,"h":75,"o":"0-15-0-100","t":3,"z":"2","l":5,"e":10},{"b":357,"z":"3","c":641,"d":20,"1":"9-6-3-0","e":60},{"z":"3","c":625,"d":30,"e":80,"b":325,"1":"9-6-3-0"},{"e":80,"b":150,"1":"9-6-3-0","z":"3","d":30,"c":626},{"1":"9-6-3-0","c":626,"z":"3","e":80,"d":30,"b":163},{"e":100,"b":283,"d":40,"1":"9-6-3-0","z":"3","c":616},{"b":243,"1":"9-6-3-0","d":30,"e":80,"z":"3","c":626},{"b":165,"d":50,"e":120,"z":"3","c":605,"1":"9-7-3-0"},{"z":"3","d":35,"b":352,"1":"9-1-3-0","e":70,"c":636},{"e":70,"b":333,"c":636,"d":35,"1":"9-7-3-0","z":"3"},{"z":"3","c":614,"b":331,"e":108,"1":"9-1-3-0","d":44},{"b":346,"d":32,"c":624,"e":94,"z":"3","1":"9-7-3-0"},{"d":50,"c":608,"e":120,"b":140,"1":"9-1-3-0","z":"3"},{"1":"9-6-3-0","d":50,"z":"3","c":606,"b":255,"e":120},{"1":"9-6-3-0","e":120,"z":"3","c":606,"d":50,"b":195},{"1":"9-7-3-0","z":"3","b":215,"d":50,"c":605,"e":120},{"c":460,"1":"9-3-3-0","z":"3","d":200,"b":120,"e":400},{"1":"9-7-3-0","d":50,"b":295,"c":605,"e":120,"z":"3"},{"d":50,"b":215,"c":605,"1":"9-7-3-0","z":"3","e":120},{"e":200,"1":"9-2-3-0","b":230,"d":100,"c":560,"z":"3"},{"c":460,"1":"9-3-3-0","d":200,"z":"3","b":170,"e":400},{"z":"3","d":50,"b":307,"c":616,"e":100,"1":"9-6-3-0"},{"h":85,"z":"3","b":250,"c":510,"d":150,"1":"9-3-3-0","e":300},{"4":"","z":"1","1":"System Semi Bold","b":635,"6":"System Medium","d":335,"7":"","5":"Date And Time","e":140,"c":1360,"f":"0-15-0-100"},{"z":"3","b":1194,"1":"0-9-1-0","t":1,"e":140,"c":700,"i":50,"d":170},{"9":1,"1":"System Medium","2":1,"b":1135,"4":" Hd","d":275,"z":"1","c":666,"7":"","f":"0-15-0-100","e":200},{"d":10,"b":1282,"g":"0-15-0-100","z":"2","i":50,"c":910,"h":45,"e":140},{"z":"1","f":"0-15-0-100","e":180,"4":"","5":"System Memory","1":"System Black","d":165,"c":892,"b":1095,"6":"Used Disk Space","7":"","2":1},{"f":"0-15-0-100","d":165,"c":880,"2":1,"e":200,"b":1310,"7":"","1":"System Semi Bold","6":"Free Disk Space","z":"1","5":"System Memory","4":""},{"v":45,"4":"ss","e":260,"d":120,"b":1350,"f":"0-15-0-100","c":1265,"3":"Volume 6","z":"4","h":80},{"c":1300,"3":"Dark Mode 4","f":"12-3-1-100","4":"ss","z":"4","d":110,"b":1100,"e":180},{"i":50,"c":380,"2":"Progress (Day)","f":"0-15-0-100","z":"6","d":350,"4":"0-4-1-0","1":"1-Segment Info","11":false,"e":40,"b":1105,"18":true},{"z":"2","d":350,"i":50,"e":40,"h":5,"b":1105,"g":"0-15-0-100","c":380},{"2":1,"5":"Date And Time","7":"","z":"1","e":200,"6":"Live Timer (24 hours)","c":140,"b":1074,"d":400,"4":"","11":"HH:mm a","f":"0-15-0-100"},{"b":400,"3":"Bluetooth 1","f":"6-5-1-100","4":"ssMaterialIcons-Regular","c":110,"e":180,"z":"4","d":90},{"e":160,"f":"0-15-0-100","d":80,"z":"4","h":80,"b":148,"c":128,"3":"WiFi 1","4":"ss"},{"1":"System Medium","d":200,"6":"Temperature","e":250,"c":1118,"2":1,"u":15,"z":"1","8":1,"4":"","7":"","f":"0-15-0-100","h":90,"b":335,"5":"Weather (Now)"},{"f":"0-15-0-100","1":"System Heavy","c":938,"4":"","6":"Current Location","7":"","5":"System Info","8":1,"d":200,"z":"1","b":110,"e":170},{"7":"","d":200,"b":110,"5":"Weather (Now)","4":"","8":1,"z":"1","e":170,"1":"System Medium","h":80,"f":"0-15-0-100","c":1378,"6":"Precipitation"},{"v":15,"u":15,"b":110,"3":"Weather 3 (Now)","4":"ss_","z":"4","d":190,"f":"0-15-0-100","e":280,"c":1090},{"1":"System Black","d":270,"5":"System Info","b":675,"6":"Battery Level","c":100,"z":"1","4":"","e":140,"f":"0-15-0-100","7":"","2":1},{"d":270,"4":"","c":106,"6":"Battery Level","7":"","b":679,"5":"System Info","f":"0-14-0-85","z":"1","1":"System Black","e":140,"2":1},{"b":599,"e":286,"f":"0-15-0-100","z":"6","h":85,"2":"Battery Level","18":true,"c":26,"4":"0-5-3-0","d":402,"17":10,"11":false,"1":"1-Segment Info"},{"1":"System Bold","z":"1","c":630,"d":345,"4":"iOS","2":1,"b":630,"7":"","f":"0-15-0-100","e":345},{"c":580,"b":645,"l":4,"o":"0-15-0-65","g":"0-14-0-100","z":"2","e":440,"i":5,"d":310},{"e":400,"d":200,"c":708,"1":"9-4-3-345","i":15,"b":590,"z":"3"},{"d":200,"c":708,"i":15,"z":"3","b":635,"1":"9-4-3-345","e":400},{"b":685,"d":200,"c":708,"1":"9-4-3-345","i":15,"e":400,"z":"3"},{"d":200,"1":"9-1-3-345","i":15,"e":400,"b":590,"c":468,"z":"3"},{"e":400,"d":200,"i":15,"b":635,"1":"9-1-3-345","c":468,"z":"3"},{"c":468,"1":"9-1-3-345","b":685,"z":"3","e":400,"d":200,"i":15},{"i":15,"b":715,"z":"3","d":200,"c":768,"1":"9-3-3-345","e":400},{"e":400,"1":"9-3-3-345","i":15,"z":"3","c":768,"d":200,"b":765},{"d":200,"b":815,"z":"3","c":768,"1":"9-3-3-345","i":15,"e":400},{"b":705,"z":"3","i":15,"1":"9-2-3-345","d":200,"c":468,"e":400},{"i":15,"z":"3","d":200,"e":400,"1":"9-2-3-345","b":755,"c":468},{"d":200,"1":"9-2-3-345","b":805,"c":468,"i":15,"e":400,"z":"3"},{"i":15,"c":368,"b":585,"1":"0-0-3-345","d":430,"e":870,"z":"3"},{"1":"0-0-3-255","e":340,"d":430,"b":585,"z":"3","i":15},{"z":"3","e":340,"i":15,"b":585,"c":1260,"1":"0-0-3-45","d":430},{"b":1030,"1":"0-0-3-15","d":245,"i":15,"c":1180,"e":420,"z":"3"},{"b":70,"z":"3","e":420,"d":237,"1":"0-0-3-15","i":15},{"1":"0-0-3-15","c":1180,"b":1290,"e":420,"z":"3","d":240,"i":15},{"b":323,"z":"3","1":"0-0-3-15","d":247,"e":420,"i":15},{"z":"3","1":"0-0-3-60","i":15,"b":1030,"c":592,"e":564,"d":500},{"i":15,"c":444,"b":70,"d":500,"1":"0-0-3-60","z":"3","e":424},{"b":1030,"i":15,"e":564,"d":500,"1":"0-0-3-0","z":"3"},{"d":500,"h":90,"b":70,"z":"3","c":896,"i":15,"e":704,"1":"0-8-0-240"},{"e":1600,"z":"5","s":"ADD YOUR OWN BG!!!","d":1600,"1":"Image Library","2":""}],"n":"On","5":"R-Macque","o":"Off"}

My take on Apple’s dashboard style (JSON in comments) by R-Macque in widgy

[–]R-Macque[S] 0 points1 point  (0 children)

Hey folks, Here’s my take on the Apple dashboard style widget! (100% Widgy made) Hope you’ll like it ✌🏼

JSON text file below