How do i enter the device id and device secret in to the raspberry pi settings

i am up to getting my device id and device secret but i have tried entering the details as a command
MATRIX_DEVICE_ID=dc7a1a71be2d
MATRIX_DEVICE_SECRET=08629018e9d793a7a10ea823ad15894da0c3616dec7aab85b4ecf17

if i do this i dont get an error so i assume this has been acepted but if i try to run index.js i get

pi@MAtrix:~/matrix-os $ node index.js
Environment Selected: rc
Loading Core Matrix Files
Loading...  device
Loading...  event
Loading...  service
DEVICE { info:
   [ { driver_name: 'IMU',
       base_port: 20013,
       provides_updates: true,
       delay_between_updates: 1000,
       needs_pings: true,
       timeout_after_last_ping: 5000,
       notes_for_human: 'Provides yaw/pitch/roll. Check Imu message (protocol buffer)' },
     { driver_name: 'Humidity',
       base_port: 20017,
       provides_updates: true,
       delay_between_updates: 1000,
       needs_pings: true,
       timeout_after_last_ping: 5000,
       notes_for_human: 'Provides humidity and temperature. Check Humidity message (protocol buffer)' },
     { driver_name: 'Everloop',
       base_port: 20021,
       provides_updates: false,
       delay_between_updates: 1000,
       needs_pings: false,
       timeout_after_last_ping: 5000,
       notes_for_human: 'Write-only. There are 35 leds. Values range from 0 to 255. Check message EverloopImage (protocol buffer)' },
     { driver_name: 'Pressure',
       base_port: 20025,
       provides_updates: true,
       delay_between_updates: 1000,
       needs_pings: true,
       timeout_after_last_ping: 5000,
       notes_for_human: 'Provides barometer/altimeter and temperature. Check Pressure message (protocol buffer)' },
     { driver_name: 'UV',
       base_port: 20029,
       provides_updates: true,
       delay_between_updates: 1000,
       needs_pings: true,
       timeout_after_last_ping: 5000,
       notes_for_human: 'Provides UV index. Check UV index message (protocol buffer). Also provides a string with the UV risk according to the OMS. See: https://www.epa.gov/sunsafety/uv-index-scale-0' } ] }
Device Error { status: 'error',
  status_code: 400,
  error: 'Missing deviceSecret parameter.' }
API Error:  400 - Missing deviceSecret parameter.

and the lights just spin round on my matrix

any ideas

I followed the recommended steps after the receive of the ID & PWD and it worked for me :

Save the following to ~/.envrc on your Pi Make these available by running source ~/.envrc before running MATRIX OS Set up matrix CLI to target this device

The last line mean that you have to do : sudo matrix use [your-matrix-device-id]

Have you use the export key word for both id & pwd ?
Ex: export MATRIX_DEVICE_ID=dc7a1a71be2d

sorry still none the wiser
how do i store the device id and device secret in .envrc on the pi

what is the file name i store it in?
and is it one file or 2 files one for each id

im still getting
Device Error { status: ‘error’,
status_code: 400,
error: ‘Missing deviceSecret parameter.’ }
API Error: 400 - Missing deviceSecret parameter.

Please don’t be sorry we all had our starting issues …specially with a Alpha project :wink:

Ok @dmkmedia,
- from your RaspberryPi terminal, in your home folder
(to be sure you are in your home folder tape : cd , then enter in your terminal - when you tape cd alone then enter it will automatically go to your home folder)
- once you are in your home folder, tape in your terminal : nano .envrc
nano, will allow to create a file in the terminal - .envrc, stand for “environment release candidate” and it will be the name of the file - the “.” indicate that the file will be hidden (ps: to be able to see hidden files, you can tape this command: ls -a)
- once in nano, the text editor (you will see “nano” writing in the upper left corner) paste :
export MATRIX_DEVICE_ID=dc7a1a71be2d
export MATRIX_DEVICE_SECRET=08629018e9d793a7a10ea823ad15894da0c3616dec7aab85b4ecf17
- then save the file with the nano command : ctrl W - and : y
- then, in your terminal tape : source .envrc

No indication will be printed but your device id and crypted key are now logged :wink:

i think i have it going but still with error at the end

Environment Selected: rc
Loading Core Matrix Files
Loading… device
Loading… event
Loading… service
Installed Apps:
Local Apps: [ ‘clock.matrix’ ]
Local / Installed Δ 1
MXSS Connected: http://rc-mxss.admobilize.com
=<[^/^]>= [d82e01dc987e] ready


|/| || | |/ | / [o__o]
| | | | | | \ | _/_ v0.5.2
[Error: No user installed firebase application: monitor]

Congrats you’ve initiated your Matrix ! “but” actually Apps don’t work. They don’t get deployed on the Matrix :-/. They work on that point. You can found our exchange in the GitHub issue #11 after I closed it

…to be continued

ps: you have this error because since recently we have to use the matrix CLI interface and the deploy argument, example : sudo matrix deploy [name-of-the-app-I-want-to-run]