crjens / PiPowerMeter

Raspberry Pi Power meter
89 stars 34 forks source link

MQTT Provision #11

Open xianrecords2015 opened 4 years ago

xianrecords2015 commented 4 years ago

Hello,

Thanks for making this project. I started my own with a standard MCP3208 but found that a 12bit ADC is not accurate enough. I like the approach of the CS5490.

I have a question for you. In the driver.js, I saw that you have some provision for MQTT but I could not find anywhere on the configuration web page a way to enter the MQTT server, username, password and port. Am I missing something ?

Thanks

Chris

crjens commented 4 years ago

It’s not exposed by default. Add ‘?advanced=1’ to the url and you should see it

From: xianrecords2015 notifications@github.com Sent: Tuesday, December 3, 2019 9:55 PM To: crjens/PiPowerMeter PiPowerMeter@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [crjens/PiPowerMeter] MQTT Provision (#11)

Hello,

Thanks for making this project. I started my own with a standard MCP3208 but found that a 12bit ADC is not accurate enough. I like the approach of the CS5490.

I have a question for you. In the driver.js, I saw that you have some provision for MQTT but I could not find anywhere on the configuration web page a way to enter the MQTT server, username, password and port. Am I missing something ?

Thanks

Chris

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcrjens%2FPiPowerMeter%2Fissues%2F11%3Femail_source%3Dnotifications%26email_token%3DACGGITLAR56FOWO4ULVTGITQW5A2RA5CNFSM4JVDLO7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H54ZV5Q&data=02%7C01%7C%7C7e481e38d4034b9a8bbe08d7787e7a24%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637110356916797501&sdata=feRgdOzD8vzraD1c%2F4GZdErIJx%2B1H%2FKhwFY6xg7gVk0%3D&reserved=0, or unsubscribehttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACGGITNZJKKKMA2CUN44N6DQW5A2RANCNFSM4JVDLO7A&data=02%7C01%7C%7C7e481e38d4034b9a8bbe08d7787e7a24%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637110356916807512&sdata=r8lX9tnAQrG7e8ctWEV7s7tI94MxlxQDVL4epvVfYqk%3D&reserved=0.

xianrecords2015 commented 4 years ago

Thank you for your answer,

I was trying to analyze the CS5490.js and forgive my ignorance and little knowledge of Javascript but you are requiring a CS5490 at the beginning of the code. I am assuming that this is not the CS5490.js file itself. There are a number of call to a cs5490 library (ie: cs5490.DigitalRead) that I cannot reference. Where are they coming from ?

Also you have define 4 input pins to read the HW version. I have a hard time to find them on the schematics. I can find the output pins but I am not understanding the inputs.

Thanks

Christian

xianrecords2015 commented 4 years ago

I now understand the 4 input pins for HW version.

I also see that you have developed a CS5490 C++ in one of the other branch that I believe is what you require in the cs5490.js. I am wondering in the setup file how you import it in the project and the setup

crjens commented 4 years ago

The 4 input pins are to determine the hardware version of the boards. There are drivers written in C for both the CS5463 and CS5490 chips. They use nanhttps://github.com/nodejs/nan to interface with the node based PiPowerMeter software.

From: xianrecords2015 notifications@github.com Sent: Wednesday, December 4, 2019 2:21 PM To: crjens/PiPowerMeter PiPowerMeter@noreply.github.com Cc: crjens crjens@hotmail.com; Comment comment@noreply.github.com Subject: Re: [crjens/PiPowerMeter] MQTT Provision (#11)

I now understand the 4 input pins for HW version.

I also see that you have developed a CS5490 C++ in one of the other branch that I believe is what you require in the cs5490.js. I am wondering in the setup file how you import it in the project and the setup

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcrjens%2FPiPowerMeter%2Fissues%2F11%3Femail_source%3Dnotifications%26email_token%3DACGGITN7AOIYXP24U5WHIALQXAULBA5CNFSM4JVDLO7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF6WJLY%23issuecomment-561865903&data=02%7C01%7C%7C2b93d2535f1c4f674cd608d779082e9d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637110948371024756&sdata=rPI9HUvlKkNjLPkfF1v4HQMDfN%2B4XZZbA8SNwG6uQkU%3D&reserved=0, or unsubscribehttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACGGITNWQI6VHBYW2E2JMEDQXAULBANCNFSM4JVDLO7A&data=02%7C01%7C%7C2b93d2535f1c4f674cd608d779082e9d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637110948371034773&sdata=4cHW6J3yAATLDYSo7p5UfoGpeS2AGe6KaWLIkpov7Co%3D&reserved=0.

xianrecords2015 commented 4 years ago

There seems to be some inconsistencies in the V4 Schematics/Board.

Tx