@@ -46,8 +46,8 @@ function getMediaPath(mediaDir) {
4646 }
4747
4848 let profileDir ;
49- if ( process . env . hasOwnProperty ( 'MOZIOT_HOME ' ) ) {
50- profileDir = process . env . MOZIOT_HOME ;
49+ if ( process . env . hasOwnProperty ( 'WEBTHINGS_HOME ' ) ) {
50+ profileDir = process . env . WEBTHINGS_HOME ;
5151 } else {
5252 profileDir = path . join ( os . homedir ( ) , '.webthings' ) ;
5353 }
@@ -193,7 +193,7 @@ function level(readOnly) {
193193
194194const onOffColorLight = {
195195 type : 'onOffColorLight' ,
196- '@context' : 'https://iot.mozilla.org /schemas' ,
196+ '@context' : 'https://webthings.io /schemas' ,
197197 '@type' : [ 'OnOffSwitch' , 'Light' , 'ColorControl' ] ,
198198 name : 'Virtual On/Off Color Light' ,
199199 properties : [
@@ -206,7 +206,7 @@ const onOffColorLight = {
206206
207207const onOffColorTemperatureLight = {
208208 type : 'onOffColorLight' ,
209- '@context' : 'https://iot.mozilla.org /schemas' ,
209+ '@context' : 'https://webthings.io /schemas' ,
210210 '@type' : [ 'OnOffSwitch' , 'Light' , 'ColorControl' ] ,
211211 name : 'Virtual On/Off Color Temperature Light' ,
212212 properties : [
@@ -219,7 +219,7 @@ const onOffColorTemperatureLight = {
219219
220220const dimmableColorLight = {
221221 type : 'dimmableColorLight' ,
222- '@context' : 'https://iot.mozilla.org /schemas' ,
222+ '@context' : 'https://webthings.io /schemas' ,
223223 '@type' : [ 'OnOffSwitch' , 'Light' , 'ColorControl' ] ,
224224 name : 'Virtual Dimmable Color Light' ,
225225 properties : [
@@ -235,7 +235,7 @@ const dimmableColorLight = {
235235
236236const multiLevelSwitch = {
237237 type : 'multiLevelSwitch' ,
238- '@context' : 'https://iot.mozilla.org /schemas' ,
238+ '@context' : 'https://webthings.io /schemas' ,
239239 '@type' : [ 'OnOffSwitch' , 'MultiLevelSwitch' ] ,
240240 name : 'Virtual Multi-level Switch' ,
241241 properties : [
@@ -248,7 +248,7 @@ const multiLevelSwitch = {
248248
249249const onOffSwitch = {
250250 type : 'onOffSwitch' ,
251- '@context' : 'https://iot.mozilla.org /schemas' ,
251+ '@context' : 'https://webthings.io /schemas' ,
252252 '@type' : [ 'OnOffSwitch' ] ,
253253 name : 'Virtual On/Off Switch' ,
254254 properties : [
@@ -260,7 +260,7 @@ const onOffSwitch = {
260260
261261const binarySensor = {
262262 type : 'binarySensor' ,
263- '@context' : 'https://iot.mozilla.org /schemas' ,
263+ '@context' : 'https://webthings.io /schemas' ,
264264 '@type' : [ 'BinarySensor' ] ,
265265 name : 'Virtual Binary Sensor' ,
266266 properties : [
@@ -272,7 +272,7 @@ const binarySensor = {
272272
273273const multiLevelSensor = {
274274 type : 'multiLevelSensor' ,
275- '@context' : 'https://iot.mozilla.org /schemas' ,
275+ '@context' : 'https://webthings.io /schemas' ,
276276 '@type' : [ 'MultiLevelSensor' ] ,
277277 name : 'Virtual Multi-level Sensor' ,
278278 properties : [
@@ -285,7 +285,7 @@ const multiLevelSensor = {
285285
286286const smartPlug = {
287287 type : 'smartPlug' ,
288- '@context' : 'https://iot.mozilla.org /schemas' ,
288+ '@context' : 'https://webthings.io /schemas' ,
289289 '@type' : [ 'OnOffSwitch' , 'EnergyMonitor' , 'SmartPlug' , 'MultiLevelSwitch' ] ,
290290 name : 'Virtual Smart Plug' ,
291291 properties : [
@@ -354,7 +354,7 @@ const smartPlug = {
354354
355355const onOffLight = {
356356 type : 'onOffLight' ,
357- '@context' : 'https://iot.mozilla.org /schemas' ,
357+ '@context' : 'https://webthings.io /schemas' ,
358358 '@type' : [ 'OnOffSwitch' , 'Light' ] ,
359359 name : 'Virtual On/Off Light' ,
360360 properties : [
@@ -366,7 +366,7 @@ const onOffLight = {
366366
367367const dimmableLight = {
368368 type : 'dimmableLight' ,
369- '@context' : 'https://iot.mozilla.org /schemas' ,
369+ '@context' : 'https://webthings.io /schemas' ,
370370 '@type' : [ 'OnOffSwitch' , 'Light' ] ,
371371 name : 'Virtual Dimmable Light' ,
372372 properties : [
@@ -378,7 +378,7 @@ const dimmableLight = {
378378} ;
379379
380380const doorSensor = {
381- '@context' : 'https://iot.mozilla.org /schemas' ,
381+ '@context' : 'https://webthings.io /schemas' ,
382382 '@type' : [ 'DoorSensor' ] ,
383383 name : 'Virtual Door Sensor' ,
384384 properties : [
@@ -398,7 +398,7 @@ const doorSensor = {
398398} ;
399399
400400const motionSensor = {
401- '@context' : 'https://iot.mozilla.org /schemas' ,
401+ '@context' : 'https://webthings.io /schemas' ,
402402 '@type' : [ 'MotionSensor' ] ,
403403 name : 'Virtual Motion Sensor' ,
404404 properties : [
@@ -418,7 +418,7 @@ const motionSensor = {
418418} ;
419419
420420const leakSensor = {
421- '@context' : 'https://iot.mozilla.org /schemas' ,
421+ '@context' : 'https://webthings.io /schemas' ,
422422 '@type' : [ 'LeakSensor' ] ,
423423 name : 'Virtual Leak Sensor' ,
424424 properties : [
@@ -438,7 +438,7 @@ const leakSensor = {
438438} ;
439439
440440const temperatureSensor = {
441- '@context' : 'https://iot.mozilla.org /schemas' ,
441+ '@context' : 'https://webthings.io /schemas' ,
442442 '@type' : [ 'TemperatureSensor' ] ,
443443 name : 'Virtual Temperature Sensor' ,
444444 properties : [
@@ -461,7 +461,7 @@ const temperatureSensor = {
461461} ;
462462
463463const pushButton = {
464- '@context' : 'https://iot.mozilla.org /schemas' ,
464+ '@context' : 'https://webthings.io /schemas' ,
465465 '@type' : [ 'PushButton' ] ,
466466 name : 'Virtual Push Button' ,
467467 properties : [
@@ -482,7 +482,7 @@ const pushButton = {
482482
483483const thing = {
484484 type : 'thing' ,
485- '@context' : 'https://iot.mozilla.org /schemas' ,
485+ '@context' : 'https://webthings.io /schemas' ,
486486 '@type' : [ ] ,
487487 name : 'Virtual Thing' ,
488488 properties : [
@@ -559,7 +559,7 @@ const thing = {
559559
560560const actionsEventsThing = {
561561 type : 'thing' ,
562- '@context' : 'https://iot.mozilla.org /schemas' ,
562+ '@context' : 'https://webthings.io /schemas' ,
563563 '@type' : [ ] ,
564564 name : 'Virtual Actions & Events Thing' ,
565565 properties : [ ] ,
@@ -652,7 +652,7 @@ const actionsEventsThing = {
652652
653653const onOffSwitchWithPin = {
654654 type : 'onOffSwitch' ,
655- '@context' : 'https://iot.mozilla.org /schemas' ,
655+ '@context' : 'https://webthings.io /schemas' ,
656656 '@type' : [ 'OnOffSwitch' ] ,
657657 name : 'Virtual On/Off Switch (with PIN)' ,
658658 properties : [
@@ -668,7 +668,7 @@ const onOffSwitchWithPin = {
668668
669669const onOffSwitchWithCredentials = {
670670 type : 'onOffSwitch' ,
671- '@context' : 'https://iot.mozilla.org /schemas' ,
671+ '@context' : 'https://webthings.io /schemas' ,
672672 '@type' : [ 'OnOffSwitch' ] ,
673673 name : 'Virtual On/Off Switch (with credentials)' ,
674674 properties : [
@@ -681,7 +681,7 @@ const onOffSwitchWithCredentials = {
681681
682682const camera = {
683683 type : 'thing' ,
684- '@context' : 'https://iot.mozilla.org /schemas' ,
684+ '@context' : 'https://webthings.io /schemas' ,
685685 '@type' : [ 'Camera' ] ,
686686 name : 'Virtual Camera' ,
687687 properties : [
@@ -709,7 +709,7 @@ const camera = {
709709
710710const videoCamera = {
711711 type : 'thing' ,
712- '@context' : 'https://iot.mozilla.org /schemas' ,
712+ '@context' : 'https://webthings.io /schemas' ,
713713 '@type' : [ 'VideoCamera' ] ,
714714 name : 'Virtual Video Camera' ,
715715 properties : [
@@ -744,7 +744,7 @@ const videoCamera = {
744744} ;
745745
746746const alarm = {
747- '@context' : 'https://iot.mozilla.org /schemas' ,
747+ '@context' : 'https://webthings.io /schemas' ,
748748 '@type' : [ 'Alarm' ] ,
749749 name : 'Virtual Alarm' ,
750750 properties : [
@@ -789,7 +789,7 @@ const alarm = {
789789} ;
790790
791791const energyMonitor = {
792- '@context' : 'https://iot.mozilla.org /schemas' ,
792+ '@context' : 'https://webthings.io /schemas' ,
793793 '@type' : [ 'EnergyMonitor' ] ,
794794 name : 'Virtual Energy Monitor' ,
795795 properties : [
@@ -855,7 +855,7 @@ const energyMonitor = {
855855} ;
856856
857857const colorControl = {
858- '@context' : 'https://iot.mozilla.org /schemas' ,
858+ '@context' : 'https://webthings.io /schemas' ,
859859 '@type' : [ 'ColorControl' ] ,
860860 name : 'Virtual Color Control' ,
861861 properties : [
@@ -866,7 +866,7 @@ const colorControl = {
866866} ;
867867
868868const thermostat = {
869- '@context' : 'https://iot.mozilla.org /schemas' ,
869+ '@context' : 'https://webthings.io /schemas' ,
870870 '@type' : [ 'Thermostat' , 'TemperatureSensor' ] ,
871871 name : 'Virtual Thermostat' ,
872872 properties : [
@@ -936,7 +936,7 @@ const thermostat = {
936936} ;
937937
938938const lock = {
939- '@context' : 'https://iot.mozilla.org /schemas' ,
939+ '@context' : 'https://webthings.io /schemas' ,
940940 '@type' : [ 'Lock' ] ,
941941 name : 'Virtual Lock' ,
942942 properties : [
@@ -974,7 +974,7 @@ const lock = {
974974} ;
975975
976976const colorSensor = {
977- '@context' : 'https://iot.mozilla.org /schemas' ,
977+ '@context' : 'https://webthings.io /schemas' ,
978978 '@type' : [ 'ColorSensor' ] ,
979979 name : 'Virtual Color Sensor' ,
980980 properties : [
@@ -985,7 +985,7 @@ const colorSensor = {
985985} ;
986986
987987const humiditySensor = {
988- '@context' : 'https://iot.mozilla.org /schemas' ,
988+ '@context' : 'https://webthings.io /schemas' ,
989989 '@type' : [ 'HumiditySensor' ] ,
990990 name : 'Virtual Humidity Sensor' ,
991991 properties : [
@@ -1008,7 +1008,7 @@ const humiditySensor = {
10081008} ;
10091009
10101010const airQualitySensor = {
1011- '@context' : 'https://iot.mozilla.org /schemas' ,
1011+ '@context' : 'https://webthings.io /schemas' ,
10121012 '@type' : [ 'AirQualitySensor' ] ,
10131013 name : 'Virtual Air Quality Sensor' ,
10141014 properties : [
@@ -1042,7 +1042,7 @@ const airQualitySensor = {
10421042} ;
10431043
10441044const barometricPressureSensor = {
1045- '@context' : 'https://iot.mozilla.org /schemas' ,
1045+ '@context' : 'https://webthings.io /schemas' ,
10461046 '@type' : [ 'BarometricPressureSensor' ] ,
10471047 name : 'Virtual Barometric Pressure Sensor' ,
10481048 properties : [
@@ -1064,7 +1064,7 @@ const barometricPressureSensor = {
10641064} ;
10651065
10661066const smokeSensor = {
1067- '@context' : 'https://iot.mozilla.org /schemas' ,
1067+ '@context' : 'https://webthings.io /schemas' ,
10681068 '@type' : [ 'SmokeSensor' ] ,
10691069 name : 'Virtual Smoke Sensor' ,
10701070 properties : [
@@ -1606,7 +1606,7 @@ class VirtualThingsAdapter extends Adapter {
16061606
16071607 const newDescr = {
16081608 type : 'thing' ,
1609- '@context' : descr [ '@context' ] || 'https://iot.mozilla.org /schemas' ,
1609+ '@context' : descr [ '@context' ] || 'https://webthings.io /schemas' ,
16101610 '@type' : descr [ '@type' ] || [ ] ,
16111611 name : descr . name ,
16121612 properties : [ ] ,
0 commit comments