Is it possible to get motion detection with the foscam camera
Not all (in fact many don't) ONVIF compatible cameras generate ONVIF event notifications for motion.
It was an optional part of the ProfileS specification.
To find out if your camera does, query it with ONVIF Device Manager from sourceforge.net
Give ODM some logon credentials (top left of the window) and any events will show on the Events page.