Widget Examples

I made a script to show you your Woocommerce Sales of the month and the current year.
Feel free to use it and generate new features.

Currently its in german and uses only your shipment costs to show you the net.
Also the caching is missing. Maybe someone has an idea to do this.

Wouldn’t the same functionality be delivered by Apple Maps (or even better?)

Ok kannst du mir deinen schicken dein Widget gefällt mir ganz gut

Per PN, hab keine Ahnung von Github und Co., und hier einzukopieren sprengt den Rahmen vermute ich :rofl:

wonderful!!!

Hi,

schick mir doch bitte auch deinen Code für das Wetter Widget.
Das sieht echt super aus.
Wenn du willst kann ich es auch auf github packen und einen verweis auf dein Profil hier setzen.
Zusätzlich würde ich es auch bei www.scriptables.net / www.scriptables.de mit aufnehmen.

Grüße

PN raus.
Credit bitte den Erstellern die die Arbeit gemacht haben :+1:

Recht herzlichen Dank,ich bekomme immer einen Fehler und ich finde ihn nicht könntest du mir helfen?Der Fehler ist folgender

2020-11-04 11:34:02: Error on line 12: SyntaxError: Invalid character ‘\u2018’

Könnte sein das durch Copy & Paste die Zeile geteilt wurde?

Zeile 12 ist die Info, Zeile 13 fängt mit const an

In Scriptable sieht es so aus

3 posts were split to a new topic: Discourse Forum Posts

Would also please share how to do it locally with images stored in iCloud? Thanks.

Assuming that you have file.jpg inside the myfolder directory inside the Scriptable folder in iCloud.

const fm = FileManager.iCloud()
const imgname = 'myfolder/file.jpg'
const imgpath = fm.joinPath(fm.documentsDirectory(), imgname)
const widget = new ListWidget()
widget.backgroundImage = Image.fromFile(imgpath)
3 Likes

Hello, does anybody know what I have to change in this widget code that the greetings run?

// The text shown if you add a greeting item to the layout.

nightGreeting: “Gute Nacht.”
,morningGreeting: “Guten Morgen.”
,afternoonGreeting: “Guten Tag.”
,eveningGreeting: “Guten Abend.”

The Widget show at the moment the Message Not the greetings

Hello, can you please tell me what I have to enter so that it shows me the text in the widget.
Thank you

// You can change the language or wording of any text in the widget.
const localizedText = {

// The text shown if you add a greeting item to the layout.
nightGreeting: “Good night.”
,morningGreeting: “Good morning.”
,afternoonGreeting: “Good afternoon.”
,eveningGreeting: “Good evening.”

Hi erkka,
Thank you so much for your widget ,I really enjoy it.While These days it can not work,Could you please give me some advice to fix it? Thanks!

Hy Hans-Dieter, mir gefällt das widget auch super - ich habe die Begrüßung über das Datum anzeigen lassen - ab Zeile 49 zusätzlich mit eintragen an der Stelle wo du möchtest (da zum Beispiel) ->

const items = [

row,

 column,
 **greeting,**
 date,
 battery,
 sunrise,
 space,

Gruß Stefan

Hi Stefan vielen Dank aber jetzt kommt mir ein anderer Fehler vielleicht weißt du was da nicht in Ordnung ist

// The text shown if you add a future weather item to the layout, or tomorrow’s events.
colum,
,nextHourLabel: “Nächste Stunde”
,tomorrowLabel: “Morgen”

2020-11-06 14:33:42: Error on line 172: SyntaxError: Unexpected token ‘,’. Expected a property name.

Ok passt alles habe den Fehler gefunden vielen Dank.Kennst du dich mit sowas aus?ich habe noch eins da kommt mir auch immer Fehler des ist ein schönes Wetter widget

Maybe there are no future events?

2 Likes

Es gibt einige Quellen zu Javascript online. Deren Lektüre ist vermutlich sinnvoller als hier bei jeder Fehlermeldung nachzufragen.