@@ -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 : [
@@ -708,7 +708,7 @@ const camera = {
708708
709709const videoCamera = {
710710 type : 'thing' ,
711- '@context' : 'https://iot.mozilla.org /schemas' ,
711+ '@context' : 'https://webthings.io /schemas' ,
712712 '@type' : [ 'VideoCamera' ] ,
713713 name : 'Virtual Video Camera' ,
714714 properties : [
@@ -742,7 +742,7 @@ const videoCamera = {
742742} ;
743743
744744const alarm = {
745- '@context' : 'https://iot.mozilla.org /schemas' ,
745+ '@context' : 'https://webthings.io /schemas' ,
746746 '@type' : [ 'Alarm' ] ,
747747 name : 'Virtual Alarm' ,
748748 properties : [
@@ -787,7 +787,7 @@ const alarm = {
787787} ;
788788
789789const energyMonitor = {
790- '@context' : 'https://iot.mozilla.org /schemas' ,
790+ '@context' : 'https://webthings.io /schemas' ,
791791 '@type' : [ 'EnergyMonitor' ] ,
792792 name : 'Virtual Energy Monitor' ,
793793 properties : [
@@ -853,7 +853,7 @@ const energyMonitor = {
853853} ;
854854
855855const colorControl = {
856- '@context' : 'https://iot.mozilla.org /schemas' ,
856+ '@context' : 'https://webthings.io /schemas' ,
857857 '@type' : [ 'ColorControl' ] ,
858858 name : 'Virtual Color Control' ,
859859 properties : [
@@ -864,7 +864,7 @@ const colorControl = {
864864} ;
865865
866866const thermostat = {
867- '@context' : 'https://iot.mozilla.org /schemas' ,
867+ '@context' : 'https://webthings.io /schemas' ,
868868 '@type' : [ 'Thermostat' , 'TemperatureSensor' ] ,
869869 name : 'Virtual Thermostat' ,
870870 properties : [
@@ -934,7 +934,7 @@ const thermostat = {
934934} ;
935935
936936const lock = {
937- '@context' : 'https://iot.mozilla.org /schemas' ,
937+ '@context' : 'https://webthings.io /schemas' ,
938938 '@type' : [ 'Lock' ] ,
939939 name : 'Virtual Lock' ,
940940 properties : [
@@ -972,7 +972,7 @@ const lock = {
972972} ;
973973
974974const colorSensor = {
975- '@context' : 'https://iot.mozilla.org /schemas' ,
975+ '@context' : 'https://webthings.io /schemas' ,
976976 '@type' : [ 'ColorSensor' ] ,
977977 name : 'Virtual Color Sensor' ,
978978 properties : [
@@ -983,7 +983,7 @@ const colorSensor = {
983983} ;
984984
985985const humiditySensor = {
986- '@context' : 'https://iot.mozilla.org /schemas' ,
986+ '@context' : 'https://webthings.io /schemas' ,
987987 '@type' : [ 'HumiditySensor' ] ,
988988 name : 'Virtual Humidity Sensor' ,
989989 properties : [
@@ -1006,7 +1006,7 @@ const humiditySensor = {
10061006} ;
10071007
10081008const airQualitySensor = {
1009- '@context' : 'https://iot.mozilla.org /schemas' ,
1009+ '@context' : 'https://webthings.io /schemas' ,
10101010 '@type' : [ 'AirQualitySensor' ] ,
10111011 name : 'Virtual Air Quality Sensor' ,
10121012 properties : [
@@ -1040,7 +1040,7 @@ const airQualitySensor = {
10401040} ;
10411041
10421042const barometricPressureSensor = {
1043- '@context' : 'https://iot.mozilla.org /schemas' ,
1043+ '@context' : 'https://webthings.io /schemas' ,
10441044 '@type' : [ 'BarometricPressureSensor' ] ,
10451045 name : 'Virtual Barometric Pressure Sensor' ,
10461046 properties : [
@@ -1062,7 +1062,7 @@ const barometricPressureSensor = {
10621062} ;
10631063
10641064const smokeSensor = {
1065- '@context' : 'https://iot.mozilla.org /schemas' ,
1065+ '@context' : 'https://webthings.io /schemas' ,
10661066 '@type' : [ 'SmokeSensor' ] ,
10671067 name : 'Virtual Smoke Sensor' ,
10681068 properties : [
@@ -1603,7 +1603,7 @@ class VirtualThingsAdapter extends Adapter {
16031603
16041604 const newDescr = {
16051605 type : 'thing' ,
1606- '@context' : descr [ '@context' ] || 'https://iot.mozilla.org /schemas' ,
1606+ '@context' : descr [ '@context' ] || 'https://webthings.io /schemas' ,
16071607 '@type' : descr [ '@type' ] || [ ] ,
16081608 name : descr . name ,
16091609 properties : [ ] ,
0 commit comments