-
Notifications
You must be signed in to change notification settings - Fork 0
/
prepopulate.js
1388 lines (1330 loc) · 54 KB
/
prepopulate.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* This should be remove soon */
require('babel-register')({
presets: [ 'env' ],
ignore: /node_modules\/(?!angular-translate-extract)/,
});
const fs = require('fs');
const en = JSON.parse(fs.readFileSync('src/assets/i18n/en.json')); // 0
const es = JSON.parse(fs.readFileSync('src/assets/i18n/es.json'));
const cat = JSON.parse(fs.readFileSync('src/assets/i18n/cat.json'));
const pageContent = [
[
{
/** -- INTRO -- **/
"index": 0,
"part": 1,
"template": "landing",
"url": "landing",
"stateName": "landing",
"h1": "Welcome to the iSCAPE Citizen Kit!",
"h4": "Let’s get you set up with a Smart Citizen Kit, and sensing in no time!",
"segueButton": "Continue in English",
"contextButton1": "",
"contextButton2": "",
},
{
"index": 1,
"part": 2,
"template": "collaborators",
"url": "smart_citizen",
"stateName": "smart_citizen",
"companyLogo": "assets/images/scklogo.png",
"h2": "Smart Citizen is a movement for civic participation in a modern world",
"h4": "Smart Citizen creates open tools for citizens to be better informed about the world around them.",
"segueButton": "CONTINUE"
},
{
"index": 2,
"part": 3,
"template": "basic2",
"url": "smart_citizen_brief",
"stateName": "smart_citizen_brief",
"image": "assets/images/sck.png",
"h2": "The Smart Citizen Kit",
"h4": "This sensor is a Smart Citizen Kit for environmental sensing. It measures sound, air quality, humidity, and lots of other things",
"segueButton": "CONTINUE"
},
{
"index": 3,
"part": 4,
"template": "basic2",
"url": "smart_citizen_brief2",
"stateName": "smart_citizen_brief2",
"image": "assets/images/web.png",
"h2": "smartcitizen.me",
"h4": "The kit sends all the measurements to the Smart Citizen website. It's open and free for all to see, question and play with...",
"segueButton": "LET'S DO THIS"
},
/** -- WHATS IN THE BOX -- **/
{
"index": 10,
"part": 1,
"template": "basic",
"url": "whats_in_the_box",
"stateName": "whats_in_the_box",
"h1": "LET'S SET UP THE KIT",
"h4": "There's a few pieces we need to set up the Kit, let's check we have them all",
"segueButton": "I'M READY"
},
{
"index": 11,
"part": 2,
"template": "selectparts",
"url": "kit_parts",
"stateName": "selectparts",
"h2": "Click on all the things you have received",
"h4": "We need to know this to make the set up work smoothly",
"part1": "Sensor Board",
"part1_desc": "This is where all the sensors are. It connects to the bigger, hardware board, so that the sensors can transmit what they find.",
"part2": "Hardware Board",
"part2_desc": "This is where all the computation takes place. Anytime you want to connect something to the Smart Citizen, it will be on this board",
"part3": "Battery",
"part3_desc": "This powers the device. Every so often it has to be recharged, especially after long periods of continuous use.",
"part4": "Charging Cable",
"part4_desc": "When the Kit needs to be charged, you can connect this cable to your computer or plug, and back to the Kit.",
"modalButton": "OK, got it",
"contextButton": "where is my enclosure?",
"segueButton": "CONTINUE",
"segueButtonError": "Are you missing parts?",
"continueButton": "CONTINUE",
"yesButton": "YES",
"noButton": "NO"
},
{
"index": 12,
"part": 3,
"template": "selectparts2",
"url": "case",
"stateName": "selectparts2",
"h2": "Finally...",
"h4": "You don’t have to have the case, but it does protect your kit against the elements",
"part5": "Case",
"part5_desc": "The case is water resistant and allows the device to be affixed to a variety of surfaces.",
"part6": "Spacers",
"part6_desc": "Placed between the hardware board and sensor board, this keeps the boards study.",
"part7": "Cover",
"part7_desc": "Closing the case, this is used dto protect the device from rain. Make sure to place the holes over the sound sensor.",
"part8": "Fastener",
"part8_desc": "This is used to fasten the case to the cover.",
"modalButton": "OK, got it",
"contextButton": "Where is my mine?",
"segueButton": "CONTINUE",
"segueButtonError": "Are you missing parts?",
"continueButton": "CONTINUE",
"yesButton": "YES",
"noButton": "NO"
},
{
"index": 13,
"part": 4,
"template": "comfirm",
"url": "confirm_parts",
"stateName": "confirm_parts",
"h1": "WELL DONE",
"h4": "Now let's put it all together",
"segueButton": "CONTINUE"
},
{
"index": 14,
"part": 5,
"template": "kitbuild1",
"url": "kitbuild_1",
"stateName": "kitbuild1",
"h2": "First the separators...",
"text": "Place a spacer in the holes on the sensor board",
"segueButton": "DONE"
},
{
"index": 15,
"part": 6,
"template": "kitbuild2",
"url": "kitbuild_2",
"stateName": "kitbuild2",
"h2": "Secondly, let's connect the sensors",
"text": "Connect the pins on the sensor board to the hardware board",
"segueButton": "DONE"
},
{
"index": 16,
"part": 7,
"template": "kitbuild3",
"url": "kitbuild_3",
"stateName": "kitbuild3",
"h2": "Let's give it some power",
"text": "Connect the battery to the hardware board",
"segueButton": "DONE"
},
{
"index": 17,
"part": 8,
"template": "kitbuild4",
"url": "kitbuild_4",
"stateName": "kitbuild4",
"h2": "And finally, turn on the Kit",
"text": "Push the button on the Kit multiple times, until the LED is red.",
"segueButton": "IT'S ALIVE"
},
{
"index": 18,
"part": 9,
"template": "casing",
"url": "case_1",
"stateName": "case1",
"h2": "Next, we'll place it all in the casing",
"text": "Make sure you place it with the battery cable towards the bottom of the casing",
"image": "assets/images/sck_placeall.png",
"segueButton": "CONTINUE"
},
{
"index": 19,
"part": 10,
"template": "casing",
"url": "case_2",
"stateName": "case2",
"h2": "... and to finish, seal the cover",
"text": "Place the transparent plastic on the front of the case and fix it in place with the two white plugs.",
"image": "assets/images/sck_sealthecover.png",
"segueButton": "CONTINUE"
},
{
"index": 20,
"part": 11,
"template": "comfirm",
"url": "confirm_build",
"stateName": "confirm_build",
"h1": "WELL DONE",
"h4": "Time to connect it to the internet",
"segueButton": "CONTINUE"
},
/** -- LIGHT HANDSHAKE -- **/
{
"index": 21,
"part": 1,
"template": "wifi_enter",
"url": "wifi_enter",
"stateName": "wifi_enter",
"h2": "What network are we connecting it to?",
"h4": "We have to type it in manually...",
"input1": "Name of Wi-Fi",
"input1_error": "A name is required to connect to a network",
"input2": "Password",
"input2_error": "",
"segueButtonError": "CHECK THE FIELDS",
"segueButton": "IT'S READY",
"contextButton": "Try another way",
"contextButton2": "Ask for Help",
"continueButton": "CONTINUE"
},
{
"index": 22,
"part": 2,
"template": "handshake",
"url": "handshake",
"stateName": "handshake",
"h2": "Now let's do some magic..",
"h4": "Hold up your kit and press it on the screen over the box below and press 'connect'. Make sure the blue side of the kit is facing you",
"handshakeLabel": "Place your kit here",
"waitLabel": "YOU CAN REMOVE YOUR DEVICE",
"segueButton": "CONNECT",
"continueButton": "CONTINUE"
},
{
"index": 23,
"part": 3,
"template": "wifi_check",
"url": "wifi_check",
"stateName": "wifi_check",
"h2": "Oops, something went wrong...",
"h4": "It seems there is a problem. Notice that the Kit light is red, please retry the Wi-Fi name and password",
"input1": "Name of Wi-Fi",
"input1_error": "A name is required to connect to a network",
"input2": "Password",
"input2_error": "",
"segueButtonError": "CHECK THE FIELDS",
"contextButton": "Try another way",
"contextButton2": "Ask for Help",
"waitLabel": "WAIT",
"segueButton": "CONNECT",
"continueButton": "CONTINUE"
},
{
"index": 24,
"part": 4,
"template": "comfirm",
"url": "confirm_handshake",
"stateName": "confirm_handshake",
"h1": "WELL DONE",
"h4": "You've connected the kit to the internet!",
"segueButton": "CONTINUE"
},
{
"index": 31,
"part": 5,
"template": "prompted_entry",
"url": "accesspoint_1",
"stateName": "accesspoint_1",
"h2": "On your mobile device, go to your Wi-Fi settings and connect to the Wi-Fi called:",
"h3_1": "The",
"em_1": " number",
"h3_2": " of the Kit, located in the",
"em_2": " bottom right corner",
"h3_3": " of your Kit.",
"h4": "If you do not see it, make sure your kit is powered on with a red LED.",
"promptedText": "SmartCitizen[...]",
"segueButton": "CONNECTED"
},
{
"index": 32,
"part": 6,
"template": "prompted_entry",
"url": "accesspoint_2",
"stateName": "accesspoint_2",
"h2": "You should see this window on your mobile device",
"h3_1": "If that did not happen, open the browser on your device and go to",
"em_1": " www.mysck.me",
"h4": "If it does not work, make sure you are connected to the wifi",
"promptedText": "SCKit.me",
"segueButton": "CONNECTED"
},
{
"index": 33,
"part": 6,
"template": "prompted_entry",
"url": "ap_final",
"stateName": "ap_final",
"h2": "Select your Wi-Fi from the list, and enter the password. When asked for your onboarding code submit:",
"h4": "If the submitted wifi and password are correct you will be redirected shortly, follow the instructions on www.mysck.me",
"promptedText": "TOKEN HERE",
"segueButton": "DONE"
},
/** -- NAMING -- **/
{
"index": 40,
"part": 1,
"template": "basic",
"url": "sensorName_prep",
"stateName": "sensorName_prep",
"h1": "LET'S GIVE YOUR SENSOR AN IDENTITY",
"h4": "This will help us know where this data is coming from...",
"segueButtonError": "CHECK NAME",
"segueButton": "CONTINUE"
},
{
"index": 41,
"part": 2,
"template": "sensorName",
"url": "sensorName",
"stateName": "sensorName",
"h2": "What shall we name the sensor?",
"h4": "You can name it pretty much anything. This is how it will appear on the Smart Citizen map.",
"input1": "Enter the sensor name",
"input1_error": "The sensor needs a name",
"contextButton": "Choose a random name",
"segueButtonError": "CHECK NAME",
"segueButton": "DONE"
},
/** -- LOCATION -- **/
{
"index": 50,
"part": 1,
"template": "location_prep",
"url": "location_prep",
"stateName": "location_prep",
"h2": "Where will you install the sensor?",
"h4": "By pressing 'allow' on the pop up we can determine the current location of the sensor. You can manually adjust this later to anywhere you want to place the sensor.",
"segueButton": "DONE",
"continueButton": "DONE!",
"waitButton": "WAIT"
},
{
"index": 51,
"part": 2,
"template": "location_map",
"url": "location_map",
"stateName": "location_map",
"h2": "If you want to adjust it or pin it elsewhere, you can do that here",
"h4": "Remember wherever your device goes, it will need wi-fi. Otherwise you'll have to go get it every now and again and connect it to your computer to sync the data",
"input1": "Enter an address",
"input1_error": "",
"segueButton": "ALL SET",
"continueButton": "ALL SET"
},
{
"index": 52,
"part": 3,
"template": "location_tags",
"url": "location_tags",
"stateName": "location_tags",
"h2": "Is there anything we should know about location?",
"h4": "Selecting from the tags below can help us make sense of the data, and compare it more accurately",
"segueButton": "All SET",
"continueButton": "All SET"
},
{
"index": 53,
"part": 4,
"template": "comfirm",
"url": "confirm_location",
"stateName": "confirm_location",
"h1": "ALMOST THERE",
"h4": "Finally, let's save all this work we've done.",
"segueButton": "CONTINUE"
},
/** -- ACCOUNT HERE -- **/
{
"index": 90,
"part": 1,
"template": "account1",
"url": "email",
"stateName": "account1",
"h2": "We can save the Kit with your email address",
"h4": "If you already have an account, we'll add it to that. If not, we'll quickly make a new one",
"segueButton": "CONTINUE",
"input1": "Put your email below",
"input1_error": "You must enter an email",
"segueButtonError": "CHECK EMAIL",
"continueButton": "CONTINUE"
},
{
"index": 91,
"part": 2,
"template": "login",
"url": "login",
"stateName": "login",
"h2a": "Awesome, welcome back",
"h2b": "enter your password below to finish!",
"h4": "This will push all of your new Kit's data to your account",
"input1": "Password",
"input1_error": "",
"segueButtonError": "CHECK PASSWORD",
"segueButton": "CONTINUE",
"contextButton": "FORGOT PASSWORD"
},
{
"index": 95,
"part": 2,
"template": "make1",
"url": "username",
"stateName": "account2",
"h2": "Nice, so you're new to Smart Citizen?",
"h4": "Add a username to your profile, so users know who owns the sensor.",
"input1": "Enter a username",
"input1_error": "A username is required",
"input1_error2": "Username is too short",
"contextButton": "Chose random name",
"segueButtonError": "CHECK USERNAME",
"segueButton": "CONTINUE"
},
{
"index": 96,
"part": 3,
"template": "make2",
"url": "password",
"stateName": "account3",
"h2": "Now, filly a password to secure everything",
"h4a": "the password has to be at least 8 characters long",
"h4b": "And one more time to make sure there are no mistakes",
"input1": "Password",
"input1_error": "The password must be at least 8 characters long",
"input1_error2": "You must enter a password",
"segueButtonError": "PASSWORDS MUST MATCH",
"segueButton": "ALL DONE!",
"continueButton": "ALL DONE!"
},
{
"index": 100,
"part": 4,
"template": "final",
"url": "final",
"stateName": "final",
"h1": "ITS ALIVE!",
"h2": "You have successfully installed and connected the Smart Citizen Kit to the internet, and then added the kit to the global community of sensors",
"h4": "Visit SmartCitizen.me to see your Kit in action capturing data. Don't forget to read the manual for assembly instructions and good tips on placing your sensor in the wild",
"segueButton": "VISIT SMARTCITIZEN.ME"
}
],
[
{
/** -- INTRO -- **/
"index": 0,
"part": 1,
"template": "landing",
"url": "landing",
"stateName": "landing",
"h1": "Bienvenido al Piloto de Making Sense!",
"h4": "Vamos a configurar el sensor Smart Citizen, y empezar a medir en breve",
"contextButton1": "ENGLISH",
"contextButton2": "CATALÀ",
"segueButton": "SIGUE EN CASTELLANO"
},
{
"index": 1,
"part": 2,
"template": "collaborators",
"url": "smart_citizen",
"stateName": "smart_citizen",
"companyLogo": "assets/images/scklogo.png",
"h2": "Smart Citizen es un movimiento para la participación ciudadana utilizando las últimas tecnologías.",
"h4": "Smart Citizen crea herramientas abiertas para que los ciudadanos están mejor informado acerca del mundo a su alrededor.",
"segueButton": "CONTINÚA"
},
{
"index": 2,
"part": 3,
"template": "basic2",
"url": "smart_citizen_brief",
"stateName": "smart_citizen_brief",
"image": "assets/images/sck_glow.png",
"h2": "El Kit de Smart Citizen",
"h4": "Este sensor es el Kit de Smart Citizen para mediciones medioambientales. Mide sonido, calidad del aire, humedad y muchas cosas más",
"segueButton": "CONTINÚA"
},
{
"index": 3,
"part": 4,
"template": "basic2",
"url": "smart_citizen_brief2",
"stateName": "smart_citizen_brief2",
"image": "assets/images/web.png",
"h2": "smartcitizen.me",
"h4": "El Kit envía todos los datos a la web de Smart Citizen. Es abierta y gratuita para todos, para ver, preguntar y jugar con ella...",
"segueButton": "VAMOS"
},
/** -- WHATS IN THE BOX -- **/
{
"index": 10,
"part": 1,
"template": "basic",
"url": "whats_in_the_box",
"stateName": "whats_in_the_box",
"h1": "CONFIGUREMOS EL SENSOR",
"h4": "En el Kit hay algunas piezas que tenemos que esamblar, revisemos que las tenemos todas",
"segueButton": "ESTOY LISTO"
},
{
"index": 11,
"part": 2,
"template": "selectparts",
"url": "kit_parts",
"stateName": "selectparts",
"h2": "Selecciona todas las piezas que has recibido",
"h4": "Tenemos que saberlo para que la puedas configrarlo sin problemas",
"part1": "Placa de Sensores",
"part1_desc": "Es donde están todos los sensores. Se conecta a la placa de datos, para que los sensores puedan transmitir lo que han medido.",
"part2": "Placa de Datos",
"part2_desc": "Es donde se procesan todos los datos. Cada vez que quieras conectar algo al Kit de Smart Citizen, tendrás que hacerlo en esta placa",
"part3": "Batería",
"part3_desc": "Es lo que alimenta el sensor. Tiene que ser cargada a menudo, especialmente si se usa durante un periodo de tiempo prolongado.",
"part4": "Cable USB",
"part4_desc": "Cuando el Kit necesita ser cargado, puedes utilizar este cable para conectar el Kit a tu ordenador o a un enchufe del mismo modo que tu móvil.",
"modalButton": "Entendido",
"contextButton": "Dónde está mi carcasa?",
"segueButton": "CONTINÚA",
"segueButtonError": "Te faltan piezas?",
"continueButton": "CONTINÚA",
"yesButton": "SI",
"noButton": "NO"
},
{
"index": 12,
"part": 3,
"template": "selectparts2",
"url": "carcasa",
"stateName": "selectparts2",
"h2": "Para finalizar...",
"h4": "No es necesario tener la carcasa, pero es útil para proteger tu Kit contra la llúvia",
"part5": "Carcasa",
"part5_desc": "La carcasa es resistente al agua y permite colocar el dispositivo en diferentes superficies.",
"part6": "Espaciadores",
"part6_desc": "Situados entre las placas de sensores y de datos, mantienen las placas sujetas.",
"part7": "Tapa",
"part7_desc": "Cierra la carcasa y se utiliza para proteger el dispositivo de la lluvia. Asegurate de colocar los agujeros encima del sensor de sonido.",
"part8": "Sujetadores",
"part8_desc": "Se usan para fijar la tapa a la carcasa.",
"modalButton": "Entendido",
"contextButton": "Dónde está el mío?",
"segueButton": "CONTINÚA",
"segueButtonError": "Te faltan piezas?",
"continueButton": "CONTINÚA",
"yesButton": "SI",
"noButton": "NO"
},
{
"index": 13,
"part": 4,
"template": "comfirm",
"url": "confirm_parts",
"stateName": "confirm_parts",
"h1": "BIEN HECHO",
"h4": "Ahora vamos a ponerlo todo junto",
"segueButton": "CONTINÚA"
},
{
"index": 14,
"part": 5,
"template": "kitbuild1",
"url": "kitbuild_1",
"stateName": "kitbuild1",
"h2": "Primero, los separadores...",
"text": "Coloca un separador en cada agujero de la placa de sensores",
"segueButton": "DONE"
},
{
"index": 15,
"part": 6,
"template": "kitbuild2",
"url": "kitbuild_2",
"stateName": "kitbuild2",
"h2": "Segundo, conectamos los sensores",
"text": "Conecta las clavijas de la placa de sensores en la placa de datos",
"segueButton": "HECHO"
},
{
"index": 16,
"part": 7,
"template": "kitbuild3",
"url": "kitbuild_3",
"stateName": "kitbuild3",
"h2": "Vamos a darle alimetación",
"text": "Conecta la batería con la placa de datos",
"segueButton": "HECHO"
},
{
"index": 17,
"part": 8,
"template": "kitbuild4",
"url": "kitbuild_4",
"stateName": "kitbuild4",
"h2": "Y por último, enciende el Kit",
"text": "Presiona el botón en el Kit, hasta que la luz del esté en rojo.",
"segueButton": "ESTÁ VIVO"
},
{
"index": 18,
"part": 9,
"template": "casing",
"url": "case_1",
"stateName": "case1",
"h2": "Después, colocalo todo dentro de la carcasa",
"text": "Asegurate de colocar el Kit con el cable de la batería hacia la parte inferior de la carcasa",
"image": "assets/images/sck_placeall.png",
"segueButton": "CONTINÚA"
},
{
"index": 19,
"part": 10,
"template": "casing",
"url": "case_2",
"stateName": "case2",
"h2": "... y para terminar, cierra la tapa",
"text": "Coloca el plástico transparente en la parte delantera de la caja y fijalo en su lugar con las dos fijaciones blancas",
"image": "assets/images/sck_sealthecover.png",
"segueButton": "CONTINÚA"
},
{
"index": 20,
"part": 11,
"template": "comfirm",
"url": "confirm_build",
"stateName": "confirm_build",
"h1": "BIEN HECHO",
"h4": "Es la hora de conectarse a Internet",
"segueButton": "CONTINÚA"
},
/** -- LIGHT HANDSHAKE -- **/
{
"index": 21,
"part": 1,
"template": "wifi_enter",
"url": "wifi_enter",
"stateName": "wifi_enter",
"h2": "Con qué red wi-fi vas a conectarte a internet?",
"h4": "Debemos introducirla manualmente...",
"input1": "Nombre del Wi-Fi",
"input1_error": "Se requiere un nombre para conectarse a la red",
"input2": "Contraseña",
"input2_error": "",
"segueButtonError": "COMPRUEBA LOS CAMPOS",
"segueButton": "ESTÁ LISTO",
"contextButton": "Pruébalo de otra manera",
"contextButton2": "Pide ayuda",
"continueButton": "CONTINÚA"
},
{
"index": 22,
"part": 2,
"template": "handshake",
"url": "handshake",
"stateName": "handshake",
"h2": "Ahora vamos a hacer algo de magia...",
"h4": "Sostén tu Kit, sitúalo en la pantalla encima del cuadrado azul aquí abajo y presiona “conectar”. Asegurate de que el lado azul del Kit está hacia ti.",
"handshakeLabel": "Coloque su Kit aquí",
"waitLabel": "YA PUEDES QUITAR EL KIT",
"segueButton": "CONECTAR",
"continueButton": "CONTINÚA"
},
{
"index": 23,
"part": 3,
"template": "wifi_check",
"url": "wifi_check",
"stateName": "wifi_check",
"h2": "Oops, algo ha salido mal...",
"h4": "Parece que hay un problema. Si la luz del Kit está en rojo, por favor vuelve a introducir el nombre del Wi-Fi y la contraseña",
"segueButtonError": "COMPRUEBA LOS CAMPOS",
"contextButton": "Pruébalo de otra manera",
"contextButton2": "Pide ayuda",
"waitLabel": "ESPERE",
"segueButton": "CONECTAR",
"continueButton": "CONTINÚA"
},
{
"index": 24,
"part": 4,
"template": "comfirm",
"url": "confirm_handshake",
"stateName": "confirm_handshake",
"h1": "BIEN HECHO",
"h4": "Ya tienes tu Kit conectado a internet!",
"segueButton": "CONTINÚA"
},
/** -- WIFI HANDSHAKE -- **/
{
"index": 31,
"part": 5,
"template": "prompted_entry",
"url": "accesspoint_1",
"stateName": "accesspoint_1",
"h2": "En tu dispositivo móvil, accede a la configuración Wi-Fi y conecta a la red Wi-Fi llamada:",
"h3_1": "El",
"em_1": " número",
"h3_2": " de tu Kit, ubicado en",
"em_2": " la esquina inferior",
"h3_3": " de tu Kit.",
"h4": "Si no lo ves, asegurate que tu Kit está encendido y la luz está en rojo.",
"promptedText": "SmartCitizen[...]",
"segueButton": "CONECTADO"
},
{
"index": 32,
"part": 6,
"template": "prompted_entry",
"url": "accesspoint_2",
"stateName": "accesspoint_2",
"h2": "Deberías ver esta ventana en tu móvil o tablet",
"h3_1": "Si no aparece, abre el navegador de tu móvil i visita",
"em_1": " www.mysck.me",
"h4": "Si aún no funciona comprueva que estás conectado al Wi-Fi",
"promptedText": "mysck.me",
"segueButton": "CONECTADO"
},
{
"index": 33,
"part": 6,
"template": "prompted_entry",
"url": "ap_final",
"stateName": "ap_final",
"h2": "Selecciona tu Wi-Fi en la lista e introduce la contraseña. Cuando te pregunte por el código de onboarding escribe:",
"h4": "Si el wifi y la contraseña presentados son correctos, se le redirigirá en breve, sigue las instrucciones en www.mysck.me",
"promptedText": "EL CÓDIGO AQUÍ",
"segueButton": "LISTO"
},
/** -- NAMING -- **/
{
"index": 40,
"part": 1,
"template": "basic",
"url": "sensorName_prep",
"stateName": "sensorName_prep",
"h1": "VAMOS A DARLE UNA IDENTIDAD A TU SENSOR",
"h4": "Esto nos ayudará a saber de dónde vienen los datos...",
"segueButtonError": "VERIFICAR NOMBRE",
"segueButton": "CONTINÚA"
},
{
"index": 41,
"part": 2,
"template": "sensorName",
"url": "sensorName",
"stateName": "sensorName",
"h2": "Qué nombre le vamos a dar a tu Kit?",
"h4": "Le puedes dar cualquier nombre. Así aparecerá en el mapa de Smart Citizen.",
"input1": "Introduce el nombre del Kit",
"input1_error": "El Kit necesita un nombre",
"contextButton": "Elige cualquier nombre",
"segueButtonError": "VERIFICAR NOMBRE",
"segueButton": "HECHO"
},
/** -- LOCATION -- **/
{
"index": 50,
"part": 1,
"template": "location_prep",
"url": "location_prep",
"stateName": "location_prep",
"h2": "Donde instalarás tu Kit?",
"h4": "Presionando 'permite' en la ventana de diálogo podemos determinar la ubicación actual del Kit. Después se puede ajustar manualmente a cualquier lugar en el que quieras ubicar el sensor.",
"segueButton": "HECHO",
"continueButton": "HECHO",
"waitButton": "ESPERA"
},
{
"index": 51,
"part": 2,
"template": "location_map",
"url": "location_map",
"stateName": "location_map",
"h2": "Si deseas ajustarlo a otro lugar, puedes hacerlo aquí",
"h4": "Recuerda que donde vaya tu dispositivo, necesitará Wi-fi.",
"input1": "Introduce una dirección",
"input1_error": "",
"segueButton": "LISTO",
"continueButton": "LISTO"
},
{
"index": 52,
"part": 3,
"template": "location_tags",
"url": "location_tags",
"stateName": "location_tags",
"h2": "Selecciona las palabras que mejor describen la ubicación de tu sensor.",
"h4": "Esto ayudarà a otros usuarios entender mejor los datos que estás midiendo",
"segueButton": "TODO CONFIGURADO",
"continueButton": "TODO CONFIGURADO"
},
{
"index": 53,
"part": 4,
"template": "comfirm",
"url": "confirm_location",
"stateName": "confirm_location",
"h1": "CASI ESTAMOS",
"h4": "Finalmente, guardemos todo el trabajo que hemos hecho.",
"segueButton": "CONTINÚA"
},
/** -- ACCOUNT HERE -- **/
{
"index": 90,
"part": 1,
"template": "account1",
"url": "email",
"stateName": "account1",
"h2": "Podemos guardar el Kit con tu dirección de correo electrónico",
"h4": "Si ya tienes una cuenta, lo añadiremos a esta. Si no la tienes, rapidamente crearemos una nueva",
"segueButtonError": "CONSULTAR CORREO ELECTRÓNICO",
"segueButton": "CONTINÚA",
"input1": "Pon tu correo electrónico a continuación",
"input1_error": "Debes poner un correo electrónico",
"continueButton": "CONTINÚA"
},
{
"index": 91,
"part": 2,
"template": "login",
"url": "login",
"stateName": "login",
"h2a": "Excelente, bienvenido!",
"h2b": "Ingresa tu contraseña abajo para terminar!",
"h4": "Esto llevará todos los datos del Kit a tu cuenta",
"input1": "Contraseña",
"input1_error": "",
"segueButtonError": "VERIFICAR CONTRASEÑA",
"segueButton": "CONTINÚA",
"contextButton": "OLVIDASTE CONTRASEÑA"
},
{
"index": 95,
"part": 2,
"template": "make1",
"url": "username",
"stateName": "account2",
"h2": "Guay, eres nuevo en Smart Citizen?",
"h4": "Agrega un nombre de usuario a tu perfil, así los usuarios sabrán quien es el dueño del Kit.",
"input1": "Introduce un nombre de usuario",
"input1_error": "Es necesario proporcionar un nombre de usuario",
"contextButton": "Elige un nombre cualquiera",
"segueButtonError": "VERIFICAR NOMBRE DE USUARIO",
"segueButton": "CONTINÚA"
},
{
"index": 96,
"part": 3,
"template": "make2",
"url": "password",
"stateName": "account3",
"h2": "Ahora, escribe una contraseña para asegurarlo todo",
"h4a": "La contraseña debe tener al menos 8 caracteres de largo",
"h4b": "Y una vez más para asegurarnos de que no hay errores",
"input1": "Contraseña",
"input1_error": "La contraseña debe tener al menos 5 caracteres de largo",
"input1_error2": "Tienes que introducir una contraseña",
"segueButtonError": "LAS CONTRASEÑAS DEBEN COINCIDIR",
"segueButton": "TODO LISTO!",
"continueButton": "TODO LISTO!"
},
{
"index": 100,
"part": 4,
"template": "final",
"url": "final",
"stateName": "final",
"h1": "ESTÁ VIVO!",
"h2": "Has instalado y conectado satisfactoriamente tu Kit Smart Citizen a internet y agregado el Kit a la comunidad global de sensores",
"h4": "Visita SmartCitizen.me para ver tu Kit en acción, capturando datos. No olvides leer el manual para las instrucciones de ensamblaje y consejos para instalar tu Kit en exteriores",
"segueButton": "VISITAR SMARTCITIZEN.ME"
}
],
[
{
/** -- INTRO -- **/
"index": 0,
"part": 1,
"template": "landing",
"url": "landing",
"stateName": "landing",
"h1": "Benvingut al Pilot de Making Sense!",
"h4": "Configura el teu Smart Citizen Kit i comença a medir en un tres i no res",
"segueButton": "CONTINUA EN CATALÀ!",
"contextButton1": "ENGLISH",
"contextButton2": "CASTELLANO",
},
{
"index": 1,
"part": 2,
"template": "collaborators",
"url": "smart_citizen",
"stateName": "smart_citizen",
"companyLogo": "assets/images/scklogo.png",
"h2": "Smart Citizen és un moviment per la participació ciutadana utilitzant les últimes tecnologies.",
"h4": "Smart Citizen crea eines obertes per ajudar els ciutadans a entendre millor el seu entorn.",
"segueButton": "CONTINUA"
},
{
"index": 2,
"part": 3,
"template": "basic2",
"url": "smart_citizen_brief",
"stateName": "smart_citizen_brief",
"image": "assets/images/sck.png",
"h2": "Smart Citizen Kit",
"h4": "Aquest sensors és un Smart Citizen Kit. Mesura soroll, qualitat de l'aire, humitat, i moltes coses més.",
"segueButton": "CONTINUA"
},
{
"index": 3,
"part": 4,
"template": "basic2",
"url": "smart_citizen_brief2",
"stateName": "smart_citizen_brief2",
"image": "assets/images/web.png",
"h2": "smartcitizen.me",
"h4": "El sensor envia totes les mesures a la web d'Smart Citizen. És lliure i oberta perquè tothom pugui veure i qüestionar les dades...",
"segueButton": "FEM-HO"
},
/** -- WHATS IN THE BOX -- **/
{
"index": 10,
"part": 1,
"template": "basic",
"url": "whats_in_the_box",
"stateName": "whats_in_the_box",
"h1": "ANEM A INSTALAR EL SENSOR",
"h4": "Hi han algunes peces que cal muntar per instalar el Kit, revisa que les tens totes.",
"segueButton": "ESTIC APUNT"
},
{
"index": 11,
"part": 2,
"template": "selectparts",
"url": "kit_parts",
"stateName": "selectparts",
"h2": "Seleccionna totes les peces que has rebut",
"h4": "Hem d'assegurar-nos'en per poder seguir amb la instalació",
"part1": "Sensor Board",
"part1_desc": "Aquesta placa conté tots els sensors. Es connecta a la més gran de manera que els sensors puguin transmetre les dades.",
"part2": "Hardware Board",
"part2_desc": "Aquí és on tot el processament es duu a terme. Cada vegada que vulguis connectar algun sensor l'Smart Citizen Kit, serà en aquesta placa",
"part3": "Bateria",
"part3_desc": "Això alimenta el sensor. Cal carregar-la sovint, sobretot després de periodes d'ús continuats.",
"part4": "Cable de càrrega",
"part4_desc": "Quan vulguis carregar el Kit, pots conectar el Kit a un ordinador o carregador USB, tal com ho fas amb el teu móbil.",
"modalButton": "Entès",
"contextButton": "On és la carcassa?",
"segueButton": "CONTINUA",
"segueButtonError": "Are you missing parts?",
"continueButton": "CONTINUA",
"yesButton": "SÍ",
"noButton": "NO"