Différences entre les versions de « Utilisateur:Tenbergen/gadgetdata »

De Semantic MediaWiki - Sandbox
m
Balise : Éditeur de wikicode 2017
m (redirect)
Balises : Nouvelle redirection Éditeur de wikicode 2017
 
Ligne 1 : Ligne 1 :
I am setting up a Raspberry Pi (call it "the gadget") that will read [[Property:GadgetTestProperty]] encoded on this page. If the value is between 0 and 20 it will drive a servo in a specific way.
+
#redirect: [[GadgetData]]
 
+
Turns out other users can't edit my user page... is that normal wiki behavior or special to this one?
== setting the value ==
 
Setting [[Property:GadgetTestProperty]] to [[GadgetTestProperty::5]]<nowiki></nowiki>
 
* SMW could encode more, but for now let's have one so my gadget doesn't have to error check.
 
 
 
== API code to read it ==
 
The following will query what the value of [[Property:GadgetTestProperty]] for this page:
 
* '''<nowiki> https://sandbox.semantic-mediawiki.org/w/api.php?action=ask&query=[[Utilisateur:Tenbergen/gadgetdata]]|?GadgetTestProperty&format=json </nowiki>'''
 
 
 
The following will return all properties for this page:
 
* <nowiki> https://sandbox.semantic-mediawiki.org/w/api.php?action=browsebysubject&subject=Utilisateur:Tenbergen/gadgetdata&format=json  </nowiki>
 

Dernière version du 27 mars 2019 à 03:10

Rediriger vers :

Turns out other users can't edit my user page... is that normal wiki behavior or special to this one?

Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.