-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to point CTS Dev server to Ona #35
Comments
Hi Guys, can no one help? really stuck on this one. Thanks in advance Andre |
The Ona interface is documented in the deployment docs: https://cts-ircdeploy.readthedocs.org/en/latest/ona.html The development server is not currently set up to poll Ona, but you can copy these settings from staging.py to local.py and it should work: https://github.com/theirc/CTS/blob/develop/cts/settings/staging.py#L78-L83 The tricky one's are the FORM_IDs since the IRC currently uses a self-hosted version of Ona that is older than the public ona.io. You should be able to find your FORM ID (an integer) by using their API. This link might work after replacing owner with your Ona username: https://api.ona.io/api/v1/forms?owner=vkurup I'm afraid I don't know of a better, more failsafe way to do that, so you may have to play around to find the right ID. |
Thanks Vinod. Andre, the IRC is moving to Ona.io, so you should def use that Sent from my iPhone
|
Guys thanks for the reply. I will try to make sense of all of it at the Appreciate it. Andre
|
Hi Guys started fresh!!! I dont quite understand it. stuch at the SSH-RSA bit... i did create a new I think im getting confused with dev, and prod... i know the difference, Fresh install on my VM... Clonned the git, installed all pre-requisits, I cannot get the keys, as my test user cannot login to the amazon servers Please help... dont want to give up on project. PS vinod... managed to get form ID. Regards Andre On 24 February 2016 at 19:11, Andre Queiroz [email protected] wrote:
Dre Http://www.brazilartsandcrafts.com |
guys latest update. Just need a bit more hand holding. So i have my Dev server running. what i need to know is: Where and what to add to the local.py in order to access my API.ona.io form data. https://api.ona.io/api/v1/forms?owner=andreq Vinod do i just add this bit? ONA related settingsONA_DOMAIN = os.environ.get('ONA_DOMAIN%s' % INSTANCE_SUFFIX, 'ona.io') into the default local.py? could i have an example please? when i try to add anything to my local.py i get lots of errors when i try to run the server. think we are close to get this running. Maybe we could have a chat? when is the best time to get you guys online? thank you so much for the help. regards Andre |
Let's pretend your Ona access token is 'ABC123', your FormID is '4321' and your Ona DeviceID FormID is '5678'. Then, in local.py, you would add this:
I am not sure, but you may need to try 'api.ona.io' for the ONA_DOMAIN, if this doesn't work. |
I did try that then the console started throwing errors. I added those lines to my local.py and got errors. What do I do? Guys I'm willing to help with the documentation. If I get this working.
|
Cool, that worked.... now if i understand well. Thanks Vinod. I cn see the data in api.ona.io How does CTS pulls the data? and how i can see it in the map... when i click on it the map comes up but i cant see my shipment. thank you so so much for the help. Regards Andre |
hi guys, any ideas? created a shipment. entered all details, finalized it. now what, do i need to tell CTS to get it? how do i see my shipment in the Map? sorry for being a pain, im sure you guys are pretty busy. Thank you so much for all the help so far. regards Andre |
CTS should poll Ona for updates and update the DB accordingly … so the status of a scanned package should change in the system. From: aqueiroz [email protected] hi guys, any ideas? created a shipment. entered all details, finalized it. now what, do i need to tell CTS to get it? how do i see my shipment in the Map? sorry for being a pain, im sure you guys are pretty busy. Thank you so much for all the help so far. regards Andre — |
Thanks Jake. .. I had it on the whole day and nothing changed. Maybe the form I'd? But truly not sure... it's a shame. Any other ideas? An example of how I should go about would help. The only thing that has a qr code is the user. How is that associated to my Maybe let me know what to check. And let me know a few steps to create a Thank you so much
|
Just to be clear, you did the following: From: aqueiroz [email protected] Thanks Jake. .. I had it on the whole day and nothing changed. Maybe the form I'd? But truly not sure... it's a shame. Any other ideas? An example of how I should go about would help. The only thing that has a qr code is the user. How is that associated to my Maybe let me know what to check. And let me know a few steps to create a Thank you so much
|
The answer to everything is yes. Where would I look for it within the shipment/ package? The rest is all done. Mobile is setup correctly. It sends data up to But like I said the qr code I scanned into the form was my user qr. Thank you for the help. Andre
|
Have you actually read all of the documentation? Where are you getting the QR code if not from the packages within your shipment in CTS? From: aqueiroz [email protected] The answer to everything is yes. Where would I look for it within the shipment/ package? The rest is all done. Mobile is setup correctly. It sends data up to But like I said the qr code I scanned into the form was my user qr. Thank you for the help. Andre
|
I have... only mentions user qr .... As Vinod mentioned I have added the details to local.py Not sure what else to do. Once I'm sure the data is being pulled from ona to my test environment I Thank you for the help
|
Once u have a shipment with packages, go to the 'print' menu - that will generate the package codes. The user codes only work for tying the device is to the user and uses a different form. Sent from my iPhone
|
I will try tomorrow. Thank you. But back to my original point. I did use the user device capture form. So Chat later 😊
|
No, it is that your form didn't match the expected input. In other words, it wasn't a package code, thus there was no update to the package. Sent from my iPhone
|
ok... finally mnaged to get the right qrcode for my shipment/ package. from print menu, package barcode. did another submit from my phone scanner the correct qr code. here are my forms https://api.ona.io/api/v1/forms?owner=andreq here is my code within local.py ONA related settingsONA_DOMAIN = 'api.ona.io' my guess is i got something wrong in the code? could you please help. thank you very much andre |
Logs? Sent from my iPhone
|
My guess is that this is an another artifact of running the project locally, rather than in a deployed setup. Local setup 'emulates' background tasks using the Try running this command:
That command should ping Ona for any Package forms matching your |
hmmmm got a few errors: Traceback (most recent call last): |
Last update Hi Guys manage to get around errors: (cts) dude@ubuntu: got no errors.... gave some time , went to shipments selected my shipment and nothing on the map. so close... please advise. thank you |
Ok just to confirm... I went back to my ONA settings and notice that i had used wrong form IDs ONA related settingsONA_DOMAIN = 'api.ona.io' this is now correct i then ran #!/usr/bin/env python manage.py update_package_locations within my virtual env and got no errors. still cant see my shipment in the map. Which logs would tell me what is happening? thank you guys... we are almost there..... |
Hi guys any ideas? |
Hi Vinod No ideas then? Is there a way i can try the production version instead? Will still run it via a VM from home. I just need to get it working to see how it performs. Sorry for all the hustle and thanks for the help. BTW: ran your command python manage.py update_package_locations gotr no errors, but still cannot see my packages on the map. Regards Andre |
Hi Guys
I've managed to login, create users, kits, packages and shipments...
I also managed to setup my android device with Ona.
I think the last piece is to get my dev CTS to pull data out of my submissions in Ona.
Where or how would i achieve that?
Cant wait to start scaning my QR codes and viewing them on the map.
Thank you so much in advance.
Regards
Andre
The text was updated successfully, but these errors were encountered: