NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rjolda

Pages: 1 2 [3] 4 5 ... 19
31
Hi All,
Again, I am not sure what to ask but here is the scenario.  I am looking at running a Kiosk with Raspberry PI.  I will have a browser in the kiosk which will connect to the NT server.  It will most likely be Chromium or Firefox for Raspberry Pi.  The kiosk is going to have a number of storage boxes.  At some point when the customer validates information on the NT server, the server will need to send a command to the kiosk ( it will know which kiosk to send the command to - and the kiosk browser will be connected to the NT Server). The command will be something like "unlock drawer #3".  At that point, the browser in the kiosk will send a notice to the onboard serial lock controller to unlock #3.   I just don't know enough about this browser stuff to get a handle on sending information to the remote (non NT browser client and having the non NT client browser act on it.  Seems like something for javascript in the client browser?  I am starting this project with Windows Computer in kiosk so will exchange values with a a NT client running on a web socket and channel.  SO, If I go to Raspberry Pi, how can my NT server send a command to the Browser running on the kiosk?  I am not sure if I can use javascript to program the Raspberry Pi browser to watch a socket or if I need to do an API query from the kiosk browser to NT server on a regular basis?
Any thoughts and insight would be helpful.
TIA,
Ron

32
Web Server - Ask For Help / NT Paths - trying to sort this out
« on: January 22, 2024, 07:08:34 AM »
Hi All,
NT 14.13  C 11.0.136
I am trying to get a handle on PATHS for a web server.   Right now,  I am working only with the WebServer.AppPath .  All my files are in the same directory as my Web Server exe.
I am going to have a different folder for each user. i.e.  User 1 will have folder: C:\User1  and User 2 will have the folder C:\User2. 
I was going to use the SETPATH() once each user logs in and I know their specific folder.  e.g. SeTPATH('C:\User1')  or SetPath('C:\User2').  In this way, they will only see their data.  I know that the NT training book uses Variable file names but I would like to use the Setpath() to get to each data set.
Questions: 1. Is using SetPath() a valid approach to do this?
                2. If  User1 is in C:\User1 directory and UPLOADS a file to the server.   Where will it go?   WIll it go to .web\uploads relative to where the App EXE is running or will User 1 have an UpLoads directory in C:\User1

I have the option of making USER 1 and USER 2 folders beneath the web folder so I am not all over the disk - is that preferable?   
Thanks for any insight.
Ron

33
Web Server - Ask For Help / Saving an image to the \web\images folder
« on: January 20, 2024, 06:56:40 AM »
Hi,
NT 14.13  C11.0.136
I am trying to save an image to the folders beneath the folder from which the web server is running.  I want to save an image to \web\images  folder.
My code saves the image to the folder from which the web server is running (not the desired subdirectory).

            st5.SetValue(imgref)
            SaveFileName = 'IN_' &   p_web.GSV('JSRV:GUID') & '.png'  ! this is the actual dropoff guid as file name
            RelativeFileName = p_web.MakeWebRelative(SaveFileName)
            ER# =    st5.SaveFile(RelativeFileName)  ! for direct save  1 = success, 0 = fail

I thought that p_web.MakeWebRelative(SaveFileName)  would set the save directory to \web\images but that is NOT the case.
How can I get the pictures to the \web\images folder so that the server can find them and display them later?
TIA,
Ron

34
Web Server - Ask For Help / Binary data on web sockets
« on: January 19, 2024, 04:30:41 PM »
Hi.  I am not sure what question to really ask.  It is easier to explain the scenario and then ask the questions.
I have a Kiosk which is running a Windows app and NetWebClient procedure wiht NetWebSocket Client connection to the server.  I want to get rid of the screen on the kiosk and have just a barcode reader on the kiosk.  The users will connect to the Web Server with their cell phone mobile app and request that the barcode reader on the kiosk read the QR code displayed on their cell phone ( we are sending them the QR code with their information.  I would like the user to be able to see the barcode scan on their cell phone so that they can see that the QR code is in the view of the camera to read the barcode.  So, they would be watching their mobile phone to make sure that they position their mobile phone correctly so that the camera can see the QR code.  That is the problem that I am trying to solve.
So, the questions.  Can this be done with a web socket - actually showing the camera image from the kiosk camera through a  Channel and Channel group so that it is specific to them?  If so, what might be the steps to implement this?  What might be other ways of doing this?  We are using a camera so there is no red line or light to line up with the QR code on their phone.  Want to help the users get it right.
TIA,
Ron

35
Web Server - Ask For Help / Icons in Browse Rows
« on: January 15, 2024, 03:30:29 AM »
Hi,
NT 14.13 and C11.0.13630.
I want to replace True/False field displays of 1/0 with a check for True and blank for 0.
Is there an example doing this?
IF not, what is the trick?
TIA,
Ron Jolda

36
Hi All,
Bruce replied in 3rd party Newsgroup.  Bruce, thanks - that was all I needed to know to get started.  In essence, put the text in the header in a div tag and give it a name so that it can be addressed.  then use Javscript call to function to change the text.  Now, I know what to do.  Now, I have to get under the hood and dive into Javascript and start writing some functions!
Thanks Bruce, that got me started.
Ron

37
Hi All,
Using NT 14.13 and C 11.0.136.
I have some variables in the XHTML of the Page Header:
<!-- Net:s:Dealer-->
  ------>>  Location:
<!-- Net:s:LoginName-->
  ------>>  Location:
<!-- Net:s:tLocName-->
  ------>> Vehicle:
<!-- Net:s:Vehiclee-->
 ------>> Auto Owner:
<!-- Net:s:Owner-->

What I want to do is CHANGE some of the values of the Header variables such as s:Vehicle - when a different vehicle is chosen.

How do I get the HEADER to refresh with the new information?
TIA,
Ron

38
Stu,
As it stands right now, I am using the kiosk to communicate with an Arduino locally which is running some stepper motors to do some tasks.  It is easier to use Windows to run the serial port and communicate with the arduino as we get started.  Also using kiosk to read barcodes - which I could also do in net talk.  THere are objects to allow browsers to communicate with Com ports - my son was using them at Volkswagen 6 years ago to communicate with car accessories and said it was straight forward.  There are no standards for this type of communication yet so Bruce is not implementing it and I can understand that.  I started watching ClarionLive #467 with Alejandro and Roberto about Arduino and Net Talk.  Fascinating.  He loaded up a browser designed for Arduino and  had it communicating with a Net Talk web server.  I think that I might go in that direction once we get our project up and running - that effort will be for "experimental play time".  I like the Seeduino XIAO for several reasons and prefer it to the Arduino.  However, not all of the arduino libraries port to it - so that is another headache.  So, for right now, going to stay with Windows app running NetWebClient with Secure Socket communications to server. 
Ron

39
HI Stu,
We are going to return automobile keys to customers at the kiosk.  They will have a QR code which they will fetch in our APP on their mobile device to scan at the Kiosk and a PIN number ( texted to them) which they will enter on their mobile device.  I think that a third check as to who is actually at which kiosk will be that the user at the kiosk will be shown a number and they will have to enter it on their mobile phone.  ( There may be 4 kiosks so I need to make sure that they are at the kiosk with their keys).  If they don't see a number to enter, they are at the wrong kiosk and we can help direct them to the correct one where they will repeat the process.
I would love to get rid of the display at the kiosk.  However, people want some type of interaction to make sure that the device is really working.  Secondly, they are going to scan the QR code on their phone on the kiosk.  In order to prevent frustration, a display on the kiosk will help them center their barcode. .  Can't think of a better way to help them get their barcode scanned.  Any ideas.
Thanks,
Ron

40
Hi,
NT 14.13  C 11.
I am going to run a Net Talk Secure Web server.  All data is on server.  Users will interact with the Server via mobile devices.  I will have remote windows terminals which will only DISPLAY messages and do actions ( like drop things) upon direction of the server after the mobile user has authenticated themselves.  The Kiosk can run a Clarion APP and can have a login to the NT web server.  The kiosk will ONLY DISPLAY messages from server and do actions requested by server.  There is NOT a lot of communication going on between Server and Kiosk.  Interactions may be 100 in 24 hours.  So, not a lot of traffic.  questions:
1. Should I implement a Secure Socket between Kiosk and NT server - this would be open all the time?
or
2. Is there a better way for server to send messages to the KIOSK in response to Mobile user making requests at the Web server.  So, response has to be timely.
Trying to figure out the best way to implement on NT server and remote Kiosk.   All help appreciated.
Thanks,
Ron

41
Web Server - Ask For Help / Re: Hiding a Tab
« on: November 20, 2023, 01:35:21 PM »
Ahh,  that is the secret.  That did it.
Many thanks - this allows me to modify my Update forms for administrative tabs which appear with Admin level security.
Ron

42
Web Server - Ask For Help / Hiding a Tab
« on: November 20, 2023, 07:01:28 AM »
Hi All.  Trying to hide a tab when a form opens depending on the security level of the user ( user vs administrator - user < 900,  admin > 900).
On the Form, the FIELDS tab shows the tab name, EQUATE and HIDE IF columns.  (Implies that I can set a condition to HIDE the tab).
However, FORM TAB has the "Tab Hide IF: greyed out. 
What needs to be set to be able to use the HIDE IF condition?
Thanks,
Ron

43
Web Server - Ask For Help / Re: Mobile App example from CIDC 2023
« on: November 20, 2023, 06:54:29 AM »
Hi Bruce,
No worries.  It would be nice to have but it is not essential that you do that for me.  I just could not find it on the site and was poking around.  I will wait until you get it into the EXAMPLES.
Thanks,
ROn

44
Web Server - Ask For Help / Mobile App example from CIDC 2023
« on: November 18, 2023, 01:32:14 PM »
HI Bruce,
Did you include the code from your Mobile App that you built for Net Talk Training  on site at CIDC 2023.  I can't find it in downloads or materials.
Is it included in NT14 somewhere?
#2 - I specifically am trying to get a handle in IDB database record that goes on the mobile device.  Trying to see example of the fields it uses and additional fields that I might want to add.
Thanks,
Ron

45
Web Server - Ask For Help / Near Field Communication - Iphone and Android
« on: November 15, 2023, 01:40:37 AM »
Hi All,
Does Nettalk and PWA provide access to Near Field Communication?  I am trying to ascertain that the person at the kiosk location is actually the person who needs to be there - e.g. to pick up a key.  One way is to have the users phone read an NFC tag in the kiosk and report the results.  Is this something Net Talk can handle?  Other ways to verify the correct person at kiosk just using their cell phone - no screen on kiosk - just camera, maybe Near Field to read and maybe a numeric keypad?
Any thoughts?
TIA,
Ron Jolda 

Pages: 1 2 [3] 4 5 ... 19